瀏覽代碼

start function

Bob Mottram 7 年之前
父節點
當前提交
efadadad13
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      src/freedombone-mesh-batman

+ 4
- 0
src/freedombone-mesh-batman 查看文件

82
     systemctl stop dnsmasq
82
     systemctl stop dnsmasq
83
     systemctl disable dnsmasq
83
     systemctl disable dnsmasq
84
 
84
 
85
+    # shellcheck disable=SC2153
85
     if [ "$EIFACE" ]; then
86
     if [ "$EIFACE" ]; then
86
         brctl delif "$BRIDGE" bat0
87
         brctl delif "$BRIDGE" bat0
87
         ifconfig "$BRIDGE" down || true
88
         ifconfig "$BRIDGE" down || true
165
     ifconfig "$ifname" up
166
     ifconfig "$ifname" up
166
 }
167
 }
167
 
168
 
169
+# shellcheck disable=SC2120
168
 function start {
170
 function start {
169
     update_wifi_adaptors
171
     update_wifi_adaptors
170
 
172
 
351
     echo $'*** Restarting the network daemon. This may take a while. ***'
353
     echo $'*** Restarting the network daemon. This may take a while. ***'
352
     echo ''
354
     echo ''
353
 
355
 
356
+    # shellcheck disable=SC2119
354
     start
357
     start
355
 }
358
 }
356
 
359
 
375
         echo ''
378
         echo ''
376
         echo $'*** Starting mesh network connection ***'
379
         echo $'*** Starting mesh network connection ***'
377
         echo ''
380
         echo ''
381
+        # shellcheck disable=SC2119
378
         start
382
         start
379
         ;;
383
         ;;
380
     ping)
384
     ping)