Permalink
Browse files

Use the 'ip' cmd from iproute2 package.

  • Loading branch information...
1 parent 0090b19 commit 98f588a44112ffc43590546ee52895cf7cd5b650 @ngty committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/s/turn-off-wifi
  2. +1 −1 bin/s/turn-on-wifi
View
@@ -4,7 +4,7 @@ DIR=`dirname $0`/../../etc/network
source $DIR/devices
sudo dhcpcd -k $WIFI
-sudo ifconfig $WIFI down
+sudo ip link set $WIFI down
sudo wpa_cli terminate
sudo wpa_cli quit
sudo rfkill block wifi
View
@@ -6,7 +6,7 @@ source $DIR/devices
CONF=/tmp/`whoami`/wifi.conf
sudo rfkill unblock wifi
-sudo ifconfig $WIFI up
+sudo ip link set $WIFI up
if [[ -n "$1" ]]; then
CONF=${DIR}/wpa/${1}

0 comments on commit 98f588a

Please sign in to comment.