From 7347c630773a8638e281a33025cb5b50ece29db4 Mon Sep 17 00:00:00 2001 From: Livien Yin Date: Mon, 10 Nov 2014 05:06:47 -0800 Subject: [PATCH] Fixup wifi auto switch. --- dotfiles/lib/python/wifi_auto_switch.py | 2 +- resources/org.imalison.wifi-auto-switch.plist | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/lib/python/wifi_auto_switch.py b/dotfiles/lib/python/wifi_auto_switch.py index 22523497..7461bb47 100644 --- a/dotfiles/lib/python/wifi_auto_switch.py +++ b/dotfiles/lib/python/wifi_auto_switch.py @@ -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: diff --git a/resources/org.imalison.wifi-auto-switch.plist b/resources/org.imalison.wifi-auto-switch.plist index 375ea1cc..850134f8 100644 --- a/resources/org.imalison.wifi-auto-switch.plist +++ b/resources/org.imalison.wifi-auto-switch.plist @@ -6,15 +6,15 @@ org.imalison.wifi-auto-switch ProgramArguments - bash + zsh -c python ~/.lib/python/wifi_auto_switch.py -n 4160CesarChavez fake-password -n InternationalFoolery5 fake-password KeepAlive StandardOutPath - /Users/imalison/logs/org.imalison.wifi-auto-switch.out + /tmp/org.imalison.wifi-auto-switch.out StandardErrorPath - /Users/imalison/logs/org.imalison.wifi-auto-switch.error + /tmp/org.imalison.wifi-auto-switch.error