Ajout option pour effacer un fichier avant de le re-telecharger
[hvlinux.git] / stage2 / install-bootscripts
index f0a45a3..63415ee 100755 (executable)
@@ -22,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