X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F30-interface;fp=fai%2Fconfig%2Fscripts%2FDEBIAN%2F30-interface;h=9883731fd90efbaa728267d099d3755e6ebc554e;hb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3;hp=c3fbeaabe9fcecd5d80c0c148399fb57f7b2d557;hpb=5ba4947c2a95c36034491b616d33efe3da1c1743;p=automated-distro-installer diff --git a/fai/config/scripts/DEBIAN/30-interface b/fai/config/scripts/DEBIAN/30-interface index c3fbeaa..9883731 100755 --- a/fai/config/scripts/DEBIAN/30-interface +++ b/fai/config/scripts/DEBIAN/30-interface @@ -2,7 +2,7 @@ error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code -if ifclass DHCPC && [ $FAI_ACTION = "install" ] +if ifclass DHCPC && [ $FAI_ACTION = "install" -o $FAI_ACTION = "dirinstall" ] then cat > $target/etc/network/interfaces <<-EOF # generated by FAI @@ -10,7 +10,7 @@ then iface lo inet loopback iface $NIC1 inet dhcp EOF -elif [ $FAI_ACTION = "install" ] +elif [ $FAI_ACTION = "install" -o $FAI_ACTION = "dirinstall" ] then [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF # generated by FAI