浏览代码

force down

Bob Mottram 8 年前
父节点
当前提交
b2862e5125
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-utils-wifi

+ 2
- 2
src/freedombone-utils-wifi 查看文件

208
     fi
208
     fi
209
 
209
 
210
     systemctl restart network-manager
210
     systemctl restart network-manager
211
-    ifdown $WIFI_INTERFACE
211
+    ifdown --force $WIFI_INTERFACE
212
 }
212
 }
213
 
213
 
214
 function hotspot_on {
214
 function hotspot_on {
494
         echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
494
         echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
495
         echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
495
         echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
496
         systemctl restart network-manager
496
         systemctl restart network-manager
497
-        ifdown ${WIFI_INTERFACE}
497
+        ifdown --force ${WIFI_INTERFACE}
498
     else
498
     else
499
         networks_from_file
499
         networks_from_file
500
     fi
500
     fi