summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-05 16:11:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-05 16:11:17 (EDT)
commitfe81504e808f6126e669a2bf1d8a9efab0a05af6 (patch)
treec0574efa8877f4bc349e8524246cca25c8bd08ae
parent30e5050c234f1b8ecefc91a9cae37cb21c79c299 (diff)
installers/pc: Write "iface ethN" blocks
-rw-r--r--installers/data/pc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/installers/data/pc.sh b/installers/data/pc.sh
index d86e48d..94d7d62 100644
--- a/installers/data/pc.sh
+++ b/installers/data/pc.sh
@@ -107,6 +107,9 @@ if [ "x${select_result}" = 'xManual' ]; then
printf '\tdhcpd-option lease %s\n' \
"${net_dhcpd_lease}" >&3
fi
+ else
+ printf 'auto %s\niface %s inet dhcp\n' \
+ "${net_iface}" "${net_iface}" >&3
fi
case "${net_iface%%[0-9]}" in wlan)
if ${net_static}; then
@@ -137,6 +140,7 @@ if [ "x${select_result}" = 'xManual' ]; then
fi
;;
esac
+ printf '\n' >&3
done
exec 3>&-
fi