summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-12-03 22:05:35 -0600
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:59:21 +0100
commit9ceea12373a7fb57093d07ffbb87352a8b5655a8 (patch)
treeaeb6d15adbc3191d34be8bd0b5d02df6ac645244 /scripts/live-bottom
parent2129c4246ffb7d7294545566de89b00342ddb938 (diff)
downloadlive-boot-9ceea12373a7fb57093d07ffbb87352a8b5655a8.tar.gz
live-boot-9ceea12373a7fb57093d07ffbb87352a8b5655a8.zip
Populate adapters in /etc/network/interfaces when ethdevice= on cmdline.
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/23networking4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
index 9554b77..86d4562 100755
--- a/scripts/live-bottom/23networking
+++ b/scripts/live-bottom/23networking
@@ -89,8 +89,8 @@ else
method="manual"
fi
- # iterate the physical interfaces and add them to the interfaces list
- if [ "${method}" != dhcp ] || ([ ! -x /root/usr/sbin/NetworkManager ] && [ ! -x /root/usr/sbin/wicd ])
+ # iterate the physical interfaces and add them to the interfaces list and also add when ethdevice= called on cmdline
+ if [ "${method}" != dhcp ] || ([ ! -x /root/usr/sbin/NetworkManager ] && [ ! -x /root/usr/sbin/wicd ]) || [ ! -z "${ETHDEVICE}" ]
then
for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*
do