Skip to content

Commit

Permalink
create /etc/network/interfaces on dirinstall as well as install
Browse files Browse the repository at this point in the history
  • Loading branch information
abezella authored and Thomas Lange committed Apr 26, 2016
1 parent 764982f commit 12cfd3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simple/scripts/DEBIAN/30-interface
Expand Up @@ -2,15 +2,15 @@

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
auto lo $NIC1
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
Expand Down

0 comments on commit 12cfd3e

Please sign in to comment.