瀏覽代碼

Merge pull request #41 from steski/staticip-issue

installer.sh: fix static IP settings in menu_install
Juan RP 9 年之前
父節點
當前提交
f5ad23e864
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      installer.sh.in

+ 1 - 1
installer.sh.in

@@ -913,7 +913,7 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
             else
                 enable_dhcpd
             fi
-        elif [ -n "$dev" -a -n "$type" = "static" ]; then
+        elif [ -n "$_dev" -a "$_type" = "static" ]; then
             # static IP through dhcpcd.
             mv $TARGETDIR/etc/dhcpcd.conf $TARGETDIR/etc/dhdpcd.conf.orig
             echo "# Static IP configuration set by the void-installer for $_dev." \