summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/networking
diff options
context:
space:
mode:
Diffstat (limited to 'src.etc/init.d/networking')
-rwxr-xr-xsrc.etc/init.d/networking9
1 files changed, 9 insertions, 0 deletions
diff --git a/src.etc/init.d/networking b/src.etc/init.d/networking
index 673cba5..25714c1 100755
--- a/src.etc/init.d/networking
+++ b/src.etc/init.d/networking
@@ -3,6 +3,15 @@
start()
{
log 'Configuring network interfaces'
+ exec 3>/etc/network/interfaces
+ printf 'auto lo\niface lo inet loopback\n\n' >&3
+ for iface in /sys/class/net/eth*; do
+ iface="${iface##*/}"
+ [ "x${iface}" = 'xeth*' ] && continue
+ printf 'auto %s\niface %s inet dhcp\n\n' \
+ "${iface}" "${iface}" >&3
+ done
+ exec 3>&-
if [ -e /etc/network/interfaces.local ]; then
file=/etc/network/interfaces.local
else