aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2007-10-18 16:50:26 +0000
committerTobias Powalowski <tpowa@archlinux.org>2007-10-18 16:50:26 +0000
commit24e468641b51e5e0a05e631d62ad706b5c0a2dd7 (patch)
tree45855a8285757ee31c5ec3466d774e65a9f72532 /rc.sysinit
parent6f35411f5ee1db8db1e27faf91c7b03e900c5bee (diff)
downloadinitscripts-24e468641b51e5e0a05e631d62ad706b5c0a2dd7.tar.xz
'upgpkg: added loopbackhardcoded to rc.sysinit and remove it from rc.conf'
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit16
1 files changed, 16 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index c531eab..8ca00cf 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -33,6 +33,14 @@ mount -n -t sysfs none /sys
/sbin/modprobe usbcore >/dev/null 2>&1
grep -qw usbfs /proc/filesystems && mount -n -t usbfs none /proc/bus/usb
+stat_busy "Bringing up loopback interface"
+ifconfig lo 127.0.0.1 up
+if [ $? -ne 0 ]; then
+ stat_fail
+else
+ stat_done
+fi
+
if [ -x /etc/start_udev -a -d /sys/block ]; then
# We have a start_udev script and /sys appears to be mounted, use UDev
status "Starting UDev Daemon" /etc/start_udev init
@@ -77,6 +85,14 @@ 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
+fi
+
# If using an encrypted root fs, we should find the root dev in the initrd
# FIXME: obsoleted by initramfs and udev
if [ -e /initrd/dev/mapper/root ]; then