Browse Source

force down

Bob Mottram 8 years ago
parent
commit
4db154ff80
2 changed files with 6 additions and 6 deletions
  1. 2
    2
      src/freedombone-utils-wifi
  2. 4
    4
      src/freedombone-wifi

+ 2
- 2
src/freedombone-utils-wifi View File

70
     cd $curr_dir
70
     cd $curr_dir
71
     update_wifi_adaptors
71
     update_wifi_adaptors
72
     if [ $IFACE ]; then
72
     if [ $IFACE ]; then
73
-        ifconfig $IFACE down
74
-        ifconfig $IFACE up
73
+        ifdown --force $IFACE
74
+        ifup $IFACE
75
     fi
75
     fi
76
 }
76
 }
77
 
77
 

+ 4
- 4
src/freedombone-wifi View File

85
             WIFI_INTERFACE=${1}
85
             WIFI_INTERFACE=${1}
86
             wifi_interface_specified=1
86
             wifi_interface_specified=1
87
             write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
87
             write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
88
-            ifconfig $WIFI_INTERFACE down
89
-            ifconfig $WIFI_INTERFACE up
88
+            ifdown --force $WIFI_INTERFACE
89
+            ifup $WIFI_INTERFACE
90
             ;;
90
             ;;
91
         -t|--type)
91
         -t|--type)
92
             shift
92
             shift
143
     WIFI_INTERFACE=$IFACE
143
     WIFI_INTERFACE=$IFACE
144
     echo "Adaptor: $WIFI_INTERFACE"
144
     echo "Adaptor: $WIFI_INTERFACE"
145
     write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
145
     write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
146
-    ifconfig $WIFI_INTERFACE down
147
-    ifconfig $WIFI_INTERFACE up
146
+    ifdown --force $WIFI_INTERFACE
147
+    ifup $WIFI_INTERFACE
148
 fi
148
 fi
149
 
149
 
150
 if [ $WIFI_DISABLE ]; then
150
 if [ $WIFI_DISABLE ]; then