Author: jim
Date: 2006-08-21 01:50:43 -0600 (Mon, 21 Aug 2006)
New Revision: 2246

Modified:
   /
   trunk/bootscripts/lfs/sysconfig/network-devices/ifup
Log:
 [EMAIL PROTECTED] (orig r2376):  jeremy | 2006-08-20 23:49:05 -0700
 Logic error in ifup script - output of ip link show always shows all 
interfaces - added a grep to only look at the interface we're interested in



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - b6734a72-470d-0410-b049-f317dca95413:/:2374
   + b6734a72-470d-0410-b049-f317dca95413:/:2376

Modified: trunk/bootscripts/lfs/sysconfig/network-devices/ifup
===================================================================
--- trunk/bootscripts/lfs/sysconfig/network-devices/ifup        2006-08-21 
07:49:19 UTC (rev 2245)
+++ trunk/bootscripts/lfs/sysconfig/network-devices/ifup        2006-08-21 
07:50:43 UTC (rev 2246)
@@ -63,7 +63,7 @@
                if [ -n "${SERVICE}" -a -x 
"${network_devices}/services/${SERVICE}" ]; then
                        if [ -z "${CHECK_LINK}" -o "${CHECK_LINK}" = "y" -o 
"${CHECK_LINK}" = "yes" -o "${CHECK_LINK}" = "1" ]; then
                                if ip link show ${1} > /dev/null 2>&1; then
-                                       link_status=`ip link show ${1} 2> 
/dev/null`
+                                       link_status=`ip link show ${1} 2> 
/dev/null | grep ${1}`
                                        if [ -n "${link_status}" ]; then
                                                if ! echo "${link_status}" | 
grep -q UP; then
                                                        ip link set ${1} up

-- 
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to