Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Checks if you are connected to airport every 20 seconds, and connects you if you are not
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
check.connection.plist
checkconnection.sh

README.md

always-connected-daemon


Daemon checks airport connection every 20 seconds, reconnects you in the case you've been disconnected.

Edit checkconnection.sh variables:

WIFI_NETWORK_NAME="YOUR_WIRELESS_NETWORK_NAME"
WIFI_PASSWORD="YOUR_PASSWORD"

*If your WiFi network name has any whitespace in it, escape the space with \s. For example: "My Network" would be:

WIFI_NETWORK_NAME="My\sNetwork\sWith\sWhite\sSpaces"

Edit check.connection.plist:

<dict>
<key>Label</key>
<string>check.connection</string>
<key>ProgramArguments</key>
    <array>
        <string>path/to/home/bin/checkconnection.sh</string>
    </array>
</dict>

*Path should begin at /root. Do not use ~/. For example:

/Users/username/bin/checkconnection.sh

Install checkconnection.sh script:

  1. Place checkconnection.sh in ~/bin/
  2. Make checkconnection.sh executable:
chmod a+x ~/bin/checkconnection.sh

Create launchd daemon:

  1. Place check.connection.plist in ~/Library/LaunchAgents/
  2. Load check.connection.plist into launchctl, to launch at start up:
launchctl load /Library/LaunchAgents/check.connection.plist

Optional: To start using Daemon right away use

launchctl start check.connection

Otherwise it will launch when you restart your computer.

Something went wrong with that request. Please try again.