3 error=0 ; trap "error=$((error|1))" ERR
5 if ifclass DHCPC && [ $FAI_ACTION != "softupdate" ]
7 cat > $target/etc/network/interfaces <<-EOF
10 iface lo inet loopback
13 elif ifclass NW_MGR && [ $FAI_ACTION != "softupdate" ]
15 cat > $target/etc/network/interfaces <<-EOF
18 iface lo inet loopback
20 elif [ $FAI_ACTION != "softupdate" ]
22 [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF
25 iface lo inet loopback
26 iface eth0 inet static
32 [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
33 [ -s /etc/resolv.conf ] && cp -p /etc/resolv.conf $target/etc
36 # here fcopy is mostly used, when installing a client for running in a
37 # different subnet than during the installation
38 fcopy -i /etc/resolv.conf
39 fcopy -iM /etc/network/interfaces /etc/networks