X-Git-Url: https://vcs.fsf.org/?p=fai-configs.git;a=blobdiff_plain;f=scripts%2FFAIBASE%2F30-interface;h=6f6eeafa936a9716f2d9ae3266db64db19b6c628;hp=e61e40e32cbc14c46c04377bd3c0369c2cbcf675;hb=353cecb889e95ae85fa3627c391a31e0cdf75150;hpb=dce19462459c53662e9cf8e9590f352ccdee1c95 diff --git a/scripts/FAIBASE/30-interface b/scripts/FAIBASE/30-interface index e61e40e..6f6eeaf 100755 --- a/scripts/FAIBASE/30-interface +++ b/scripts/FAIBASE/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 = "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 = "dirinstall" ] then [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF # generated by FAI @@ -19,7 +19,6 @@ then iface $NIC1 inet static address $IPADDR netmask $NETMASK - broadcast $BROADCAST gateway $GATEWAYS EOF [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks