From: Michael Prokop Date: Sun, 9 Sep 2007 10:05:28 +0000 (+0200) Subject: Fix detection of network devices - do not assume it is named eth* X-Git-Tag: 0.92~4 X-Git-Url: http://git.grml.org/?p=grml-terminalserver.git;a=commitdiff_plain;h=b448cecab13af63604a807845d5277408f279171 Fix detection of network devices - do not assume it is named eth* --- diff --git a/debian/changelog b/debian/changelog index 63bb869..a6bb2c9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-terminalserver (0.92) unstable; urgency=low + + * Fix detection of network devices - do not assume it is named eth*. + + -- Michael Prokop Sun, 9 Sep 2007 12:05:05 +0200 + grml-terminalserver (0.91) unstable; urgency=low * Readme.Debian: better howto diff --git a/grml-terminalserver-config b/grml-terminalserver-config index 3247580..557c602 100755 --- a/grml-terminalserver-config +++ b/grml-terminalserver-config @@ -274,7 +274,7 @@ for addresses from 192.168.0.101 to (and including) 192.168.0.200. local grub_message_="Do you have any NON-PXE network cards you would like to boot from?" # on witch interfaces should we listen - local netdevices_="$(cat /proc/net/dev | awk -F: '/eth.:|tr.:/{print $1}')" + local netdevices_="$(grep -ve 'lo:' -ve 'Inter-|' -ve 'face |bytes' /proc/net/dev | awk -F: '{print $1}')" local device_list_="" for INTERFACE_ in $netdevices_; do device_list_="$device_list_ ${INTERFACE_} Networkcard_${INTERFACE_##eth}"; done echo -n "" >"$TMP_"