Populate adapters in /etc/network/interfaces when ethdevice= on cmdline.
authorRichard Nelson <unixabg@gmail.com>
Sat, 4 Dec 2010 04:05:35 +0000 (22:05 -0600)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:59:21 +0000 (17:59 +0100)
scripts/live-bottom/23networking

index 9554b77..86d4562 100755 (executable)
@@ -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