From 31dbcc786457dd92d9f56618e7c946b94ec04646 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 19 Oct 2007 06:08:19 +0000 Subject: 'upgpkg: added /sys/class/net/lo check' --- rc.sysinit | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 8ca00cf..1fa7396 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -85,12 +85,15 @@ if pidof -o %PPID /sbin/udevd >/dev/null; then 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 -- cgit v1.2.3-54-g00ecf