Author: sip Date: 2006-02-23 19:11:09 +0100 (Thu, 23 Feb 2006) New Revision: 793 Modified: crux-2.2/ports/core/rc/.md5sum crux-2.2/ports/core/rc/Pkgfile crux-2.2/ports/core/rc/inittab crux-2.2/ports/core/rc/rc crux-2.2/ports/core/rc/rc.single Log: rc: updated for udev, activate swap after mounting filesystem Modified: crux-2.2/ports/core/rc/.md5sum =================================================================== --- crux-2.2/ports/core/rc/.md5sum 2006-02-23 18:09:35 UTC (rev 792) +++ crux-2.2/ports/core/rc/.md5sum 2006-02-23 18:11:09 UTC (rev 793) @@ -1,8 +1,8 @@ -2bc193900697ce87d72a853eecd332f9 inittab -861ea83c75c62af1193bfffa07648102 rc +d2a8e98a8b10ba09b2a9da34326b526a inittab +326b82eaef79bd684e3b2c421e394c6f rc 28c073739fd671ed79bd50a0ffd6c644 rc.conf d1be35927946756c68242f29c16ee983 rc.local 394d5cff98ab59fd1a0ec64fe79292cb rc.modules f90daf341564259d1eedc57401f631fe rc.multi 4d42abb62d84f8560c81b21dccd9e922 rc.shutdown -d55aa9022658e71b95ac6b8ea3232711 rc.single +4719d49cb9692f112157683d0481dba0 rc.single Modified: crux-2.2/ports/core/rc/Pkgfile =================================================================== --- crux-2.2/ports/core/rc/Pkgfile 2006-02-23 18:09:35 UTC (rev 792) +++ crux-2.2/ports/core/rc/Pkgfile 2006-02-23 18:11:09 UTC (rev 793) @@ -4,7 +4,7 @@ name=rc version=2.17 -release=1 +release=2 source=(inittab rc rc.modules rc.single rc.multi rc.local rc.shutdown rc.conf) build() { Modified: crux-2.2/ports/core/rc/inittab =================================================================== --- crux-2.2/ports/core/rc/inittab 2006-02-23 18:09:35 UTC (rev 792) +++ crux-2.2/ports/core/rc/inittab 2006-02-23 18:11:09 UTC (rev 793) @@ -17,13 +17,13 @@ rd:06:wait:/etc/rc.shutdown su:S:wait:/sbin/sulogin -p -c1:2:respawn:/sbin/agetty 38400 vc/1 linux -c2:2:respawn:/sbin/agetty 38400 vc/2 linux -c3:2:respawn:/sbin/agetty 38400 vc/3 linux -c4:2:respawn:/sbin/agetty 38400 vc/4 linux -c5:2:respawn:/sbin/agetty 38400 vc/5 linux -c6:2:respawn:/sbin/agetty 38400 vc/6 linux -#s1:2:respawn:/sbin/agetty 38400 tts/0 vt100 +c1:2:respawn:/sbin/agetty 38400 tty1 linux +c2:2:respawn:/sbin/agetty 38400 tty2 linux +c3:2:respawn:/sbin/agetty 38400 tty3 linux +c4:2:respawn:/sbin/agetty 38400 tty4 linux +c5:2:respawn:/sbin/agetty 38400 tty5 linux +c6:2:respawn:/sbin/agetty 38400 tty6 linux +#s1:2:respawn:/sbin/agetty 38400 ttyS0 vt100 ca::ctrlaltdel:/sbin/shutdown -t3 -r now Modified: crux-2.2/ports/core/rc/rc =================================================================== --- crux-2.2/ports/core/rc/rc 2006-02-23 18:09:35 UTC (rev 792) +++ crux-2.2/ports/core/rc/rc 2006-02-23 18:11:09 UTC (rev 793) @@ -8,12 +8,11 @@ # Load configuration . /etc/rc.conf -# Start device management daemon -/sbin/devfsd /dev +# Start udev +/bin/mount -n -t proc none /proc +/bin/mount -n -t sysfs none /sys +/sbin/start_udev -# Activate swap -/sbin/swapon -a - # Mount root read-only /bin/mount -n -o remount,ro / @@ -41,9 +40,13 @@ # Mount local filesystems /bin/mount -n -o remount,rw / -/bin/rm -f /etc/mtab* +/bin/umount /sys /proc +/bin/rm -f /etc/mtab* /bin/mount -a -O no_netdev +# Activate swap +/sbin/swapon -a + # Clean up misc files : > /var/run/utmp /bin/rm -rf /forcefsck /fastboot /etc/nologin /etc/shutdownpid Modified: crux-2.2/ports/core/rc/rc.single =================================================================== --- crux-2.2/ports/core/rc/rc.single 2006-02-23 18:09:35 UTC (rev 792) +++ crux-2.2/ports/core/rc/rc.single 2006-02-23 18:11:09 UTC (rev 793) @@ -26,10 +26,11 @@ /usr/bin/sleep 5 /sbin/killall5 -9 - # Start device management daemon - /sbin/devfsd /dev - - # Start log daemons + # Start udev + /bin/mount -n -t proc none /proc + /bin/mount -n -t sysfs none /sys + /sbin/start_udev + /usr/sbin/syslogd /usr/sbin/klogd -c 4 fi