diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2007-10-19 06:08:19 +0000 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2007-10-19 06:08:19 +0000 |
commit | 31dbcc786457dd92d9f56618e7c946b94ec04646 (patch) | |
tree | db03b854fb24fa605502f4cc9a20144b91a12d13 | |
parent | 24e468641b51e5e0a05e631d62ad706b5c0a2dd7 (diff) |
'upgpkg: added /sys/class/net/lo check'
-rwxr-xr-x | rc.sysinit | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 |