summaryrefslogtreecommitdiff
path: root/scripts/casper-bottom/23networking
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:36 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:24:35 +0100
commit4bdaa2237c6ae923d1dd068e9024ebceca3f40d9 (patch)
tree5a563ee3109e324ae7002f0550ac9850254c1ecd /scripts/casper-bottom/23networking
parentc972c6eea545add125883eaaeea459551e54589c (diff)
downloadlive-boot-4bdaa2237c6ae923d1dd068e9024ebceca3f40d9.tar.gz
live-boot-4bdaa2237c6ae923d1dd068e9024ebceca3f40d9.zip
Adding live-initramfs 1.87.1-1.
Diffstat (limited to 'scripts/casper-bottom/23networking')
-rwxr-xr-xscripts/casper-bottom/23networking12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/casper-bottom/23networking b/scripts/casper-bottom/23networking
index cfc565d..1b732d3 100755
--- a/scripts/casper-bottom/23networking
+++ b/scripts/casper-bottom/23networking
@@ -61,14 +61,13 @@ else
# on startup by ifup script - otherwise our root fs might be disconnected!
method="manual"
fi
-
# iterate the physical interfaces and add them to the interfaces list
for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*; do
[ -e $interface ] || continue
i="$(basename $interface)"
cat >> "$IFFILE" <<EOF
auto $i
-iface $i inet ${method}
+iface $i inet $method
EOF
done
@@ -96,4 +95,13 @@ EOF
fi
fi
+for i in eth0 eth1 eth2 ath0 wlan0; do
+ grep -q "iface $i" $IFFILE && continue
+ cat >> "$IFFILE" <<EOF
+auto $i
+iface $i inet dhcp
+
+EOF
+done
+
log_end_msg