summaryrefslogtreecommitdiffstats
path: root/normal.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-11-01 11:13:53 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2012-11-01 11:13:53 -0600
commit512eee2d4747d582f96686e625055871598706dc (patch)
treecba506eeccdf6db353e20c2186b3fe21da758ee6 /normal.sh
parentAdd reset module, spoofing convience script, and make normal do a reset instead of a start. (diff)
downloadwifi-monitoring-scripts-512eee2d4747d582f96686e625055871598706dc.tar.xz
wifi-monitoring-scripts-512eee2d4747d582f96686e625055871598706dc.zip
Modernize scripts.
Diffstat (limited to 'normal.sh')
-rwxr-xr-xnormal.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/normal.sh b/normal.sh
index 29d36e3..dbb95aa 100755
--- a/normal.sh
+++ b/normal.sh
@@ -2,7 +2,9 @@ if [[ $UID != 0 ]]; then
echo "You must be root."
exit -1
fi
+
ifconfig wlan0 down
ifconfig wlan0 up
-systemctl restart dhcpcd.service
-systemctl restart wpa_supplicant@wlan0.service
+
+/etc/init.d/dhcpcd restart
+/etc/init.d/wpa_supplicant restart