;;
esac
-# live-initramfs header
+# live-boot header
if [ -n "${NONETWORKING}" ]
then
log_begin_msg "Preconfiguring networking"
-# live-initramfs script
+# live-boot script
IFFILE="/root/etc/network/interfaces"
ifgateway="$(echo ${ifline} | cut -f4 -d ',')"
cat >> "${IFFILE}" << EOF
-auto ${ifname}
+allow-hotplug ${ifname}
iface ${ifname} inet static
address ${ifaddress}
netmask ${ifnetmask}
done
else
- if [ -z "${NETBOOT}" ]
+ if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
then
# default, dhcp assigned
method="dhcp"
i="$(basename ${interface})"
cat >> "${IFFILE}" << EOF
-auto ${i}
+allow-hotplug ${i}
iface ${i} inet ${method}
EOF
cat > /root/etc/resolv.conf << EOF
# /etc/resolv.conf
-# Autogenerated by live-initramfs
+# Autogenerated by live-boot
search ${rc_search}
domain ${rc_search}
${rc_server0}
# grep -q "iface ${i}" ${IFFILE} && continue
#
#cat >> "${IFFILE}" << EOF
-#auto ${i}
+#allow-hotplug ${i}
#iface ${i} inet dhcp
#
#EOF