diff options
author | Mike Fiore <mfiore@multitech.com> | 2013-04-24 09:19:29 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2013-04-24 09:19:29 -0500 |
commit | 27fbad82e88a7e64ca0622e3fee6937c4a6daedc (patch) | |
tree | 993bd698805b40c2239b171e499d429b2425b57b /multitech/recipes/ocg-scripts/ocg-scripts-1.0 | |
parent | 975f1ea587da06fadbff78e3f1e38a2f07c173dd (diff) |
ocg-scripts: removed wifi client script
Diffstat (limited to 'multitech/recipes/ocg-scripts/ocg-scripts-1.0')
-rw-r--r-- | multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh b/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh deleted file mode 100644 index 6987506..0000000 --- a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -do_start() { - echo "joining wireless network" - wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf - sleep 5 - echo "starting dhcp client" - udhcpc -i wlan0 -} - -do_stop() { - echo "stopping wpa_supplicant" - killall wpa_supplicant - echo "stopping dhcp client" - killall udhcpc -} - -# main -if [[ $# -ne 1 ]] -then - echo "usage: $0 start|stop|restart" - exit 1 -fi - -case $1 in - start) - if [[ ! -f "/etc/wpa_supplicant.conf" ]] - then - echo "/etc/wpa_supplicant.conf does not exist" - exit 1 - fi - do_start - ;; - stop) - do_stop - ;; - restart) - do_stop - do_start - ;; -esac - -exit 0 |