Ajout option pour effacer un fichier avant de le re-telecharger
[hvlinux.git] / stage2 / install-bootscripts
index 894c344..63415ee 100755 (executable)
@@ -1,9 +1,6 @@
 #!/bin/bash
 
-# Reading system configuration informations, functions and package versions.
-source ../config/sysinfos
-source ../functions
-source ../config/packages-list
+source ../functions/main
 
 DHCP_USED="no"
 
@@ -25,7 +22,8 @@ for nic_device in ${INTERFACES}; do
     echo "IFSCOPE=\"\"" >> ${file}
     echo "GATEWAY=\"${GATEWAY[${LOOP_INDEX}]}\"" >> ${file}
 
-    if [ "x${BOOTPROTO[${LOOP_INDEX}]}" = "xdhcp" ]; then
+    if [ "x${BOOTPROTO[${LOOP_INDEX}]}" = "xdhcp" -o \
+        "x${BOOTPROTO[${LOOP_INDEX}]}" = "xwifi" ]; then
        DHCP_USED="yes"
     fi