issue with $netdevices_up and squeeze
Thomas Lange
lange at informatik.uni-koeln.de
Mon Dec 13 15:14:33 CET 2010
>>>>> On Sun, 12 Dec 2010 16:38:23 -0800, David Dreezer <dave at socialstrata.com> said:
> get-boot-info determines $netdevices_up like so:
> netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
I think will will fix it even with lenny.
Index: get-boot-info
===================================================================
--- get-boot-info (revision 6195)
+++ get-boot-info (working copy)
@@ -41,7 +41,7 @@
netdevice_info() {
# devices that are running
- netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
+ netdevices_up=$(ip link show up | grep "^[1-9$].*LOWER_UP" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
# netdevices is the list of ethernet devices which will be used for bootpc (maybe dhcp)
# if not defined, use boot messages to determine network devices
[ -n "$netdevices" ] || netdevices=$netdevices_up
--
regards Thomas
More information about the linux-fai
mailing list