[arch-commits] CVS update of core/base/initscripts (rc.sysinit)

Tobias Powalowski tpowa at archlinux.org
Fri Oct 19 06:08:19 UTC 2007


    Date: Friday, October 19, 2007 @ 02:08:19
  Author: tpowa
    Path: /home/cvs-core/core/base/initscripts

Modified: rc.sysinit (1.111 -> 1.112)

'upgpkg: added /sys/class/net/lo check'


------------+
 rc.sysinit |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)


Index: core/base/initscripts/rc.sysinit
diff -u core/base/initscripts/rc.sysinit:1.111 core/base/initscripts/rc.sysinit:1.112
--- core/base/initscripts/rc.sysinit:1.111	Thu Oct 18 12:50:26 2007
+++ core/base/initscripts/rc.sysinit	Fri Oct 19 02:08:19 2007
@@ -85,12 +85,15 @@
 	status "Loading UDev uevents" /etc/start_udev uevents
 fi
 
-stat_busy "Bringing up loopback interface"
-ifconfig lo 127.0.0.1 up
-if [ $? -ne 0 ]; then
-  stat_fail
-else
-  stat_done
+# bring up the loopback interface
+if [ -d /sys/class/net/lo ]; then
+	stat_busy "Bringing up loopback interface"
+	ifconfig lo 127.0.0.1 up
+	if [ $? -ne 0 ]; then
+		stat_fail
+	else
+		stat_done
+	fi
 fi
 
 # If using an encrypted root fs, we should find the root dev in the initrd




More information about the arch-commits mailing list