From 4a4cb51a138d73753bb967c27a9f7ea8bf9f88b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Sun, 6 Apr 2008 15:48:22 +0200 Subject: Move /sys mounting to the beginning, together with /proc and /dev and clean up some comments --- rc.sysinit | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 9a49a7e..b97613f 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -16,9 +16,10 @@ printhl "Copyright 2007-2008 Aaron Griffin" printhl "Distributed under the GNU General Public License (GPL)" printsep -# mount /proc and our RAM /dev +# mount /proc, /sys and our RAM /dev /bin/mount -n -t ramfs none /dev /bin/mount -n -t proc none /proc +/bin/mount -n -t sysfs none /sys # Create our default nodes that minilogd may need /bin/mknod /dev/null c 1 3 @@ -45,9 +46,6 @@ else /bin/dmesg -n 3 fi -# mount /sys -/bin/mount -n -t sysfs none /sys - # enable rtc access /sbin/modprobe rtc-cmos >/dev/null 2>&1 RTC_MAJOR=$(/bin/grep -w rtc /proc/devices 2>/dev/null); RTC_MAJOR="${RTC_MAJOR%% *}" @@ -310,7 +308,7 @@ stat_busy "Mounting Local Filesystems" /bin/rm -f /etc/mtab* # make sure / gets written to /etc/mtab /bin/mount -o remount,rw / -# re-mount /proc and /sys so they can be written to /etc/mtab +# Write /proc, /sys and /dev to /etc/mtab if [ -e /proc/mounts ]; then /bin/grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab fi -- cgit v1.2.3