diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-04-06 15:48:22 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-04-06 15:48:22 +0200 |
commit | 4a4cb51a138d73753bb967c27a9f7ea8bf9f88b3 (patch) | |
tree | 092454954e0e165eefcaacb075a6e71e95427441 | |
parent | f3e064ec822b3dae191e1ae5d2bb921a970af86e (diff) |
Move /sys mounting to the beginning, together with /proc and /dev and clean up some comments
-rwxr-xr-x | rc.sysinit | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |