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 [ $FAI_ACTION != "softupdate" ]
15 [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF
18 iface lo inet loopback
19 iface eth0 inet static
25 [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
26 [ -s /etc/resolv.conf ] && cp -p /etc/resolv.conf $target/etc
29 # here fcopy is mostly used, when installing a client for running in a
30 # different subnet than during the installation
31 fcopy -i /etc/resolv.conf
32 fcopy -iM /etc/network/interfaces /etc/networks