Fixup wifi auto switch.

This commit is contained in:
Livien Yin 2014-11-10 05:06:47 -08:00 committed by Ivan Malison
parent 5285e2a588
commit 7347c63077
2 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ if __name__ == '__main__':
log_util.enable_logger(__name__)
parser = argparse.ArgumentParser()
parser.add_argument('-n', '--network', nargs='+', type=str, action='append', dest='networks')
parser.add_argument('-s', '--sleep-time', type=int, dest='sleep_time')
parser.add_argument('-s', '--sleep-time', type=int, default=4.0, dest='sleep_time')
args = parser.parse_args()
network_pairs = args.networks
for network_pair in network_pairs:

View File

@ -6,15 +6,15 @@
<string>org.imalison.wifi-auto-switch</string>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>zsh</string>
<string>-c</string>
<string>python ~/.lib/python/wifi_auto_switch.py -n 4160CesarChavez fake-password -n InternationalFoolery5 fake-password</string>
</array>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/Users/imalison/logs/org.imalison.wifi-auto-switch.out</string>
<string>/tmp/org.imalison.wifi-auto-switch.out</string>
<key>StandardErrorPath</key>
<string>/Users/imalison/logs/org.imalison.wifi-auto-switch.error</string>
<string>/tmp/org.imalison.wifi-auto-switch.error</string>
</dict>
</plist>