From 3e71816595d8cb5d96a4279f972650fa7b88979f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 28 Jan 2004 06:28:44 +0000 Subject: mount sysfs. throw away error if it fails (2.4 kernels) --- rc.d/rc.sysinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 3952ec36..02049bd4 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -21,8 +21,9 @@ if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then HOSTNAME=localhost fi -# Mount /proc (done here so volume labels can work with fsck) +# Mount /proc and /sys (done here so volume labels can work with fsck) mount -n -t proc /proc /proc +mount -n -t sysfs /sys /sys >/dev/null 2>&1 . /etc/init.d/functions @@ -373,6 +374,7 @@ rm -f /etc/mtab~ /etc/mtab~~ # Enter root, /proc and (potentially) /proc/bus/usb and devfs into mtab. mount -f / mount -f /proc +mount -f /sys >/dev/null 2>&1 mount -f /dev/pts [ -f /proc/bus/usb/devices ] && mount -f -t usbdevfs usbdevfs /proc/bus/usb [ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev -- cgit v1.2.1