瀏覽代碼

Roaming dhcp

Bob Mottram 8 年之前
父節點
當前提交
7535e8b988
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. 9
    0
      src/freedombone-utils-wifi

+ 9
- 0
src/freedombone-utils-wifi 查看文件

301
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
301
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
302
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
302
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
303
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
303
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
304
+    echo '' >> /etc/network/interfaces
305
+    echo '#this line must always be here' >> /etc/network/interfaces
306
+    echo 'iface default inet dhcp' >> /etc/network/interfaces
304
 
307
 
305
     wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG
308
     wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG
306
 
309
 
327
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
330
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
328
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
331
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
329
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
332
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
333
+    echo '' >> /etc/network/interfaces
334
+    echo '#this line must always be here' >> /etc/network/interfaces
335
+    echo 'iface default inet dhcp' >> /etc/network/interfaces
330
 
336
 
331
     echo 'update_config=1' > $WIFI_CONFIG
337
     echo 'update_config=1' > $WIFI_CONFIG
332
     echo 'eapol_version=1' >> $WIFI_CONFIG
338
     echo 'eapol_version=1' >> $WIFI_CONFIG
369
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
375
     echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
370
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
376
     echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
371
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
377
     echo "  wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
378
+    echo '' >> /etc/network/interfaces
379
+    echo '#this line must always be here' >> /etc/network/interfaces
380
+    echo 'iface default inet dhcp' >> /etc/network/interfaces
372
 
381
 
373
     # remove wpa_supplicant.conf if it exists
382
     # remove wpa_supplicant.conf if it exists
374
     if [ -f $WIFI_CONFIG ]; then
383
     if [ -f $WIFI_CONFIG ]; then