summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorSimone Rota <sip@crux.nu>2006-02-23 18:11:09 +0000
committerSimone Rota <sip@crux.nu>2006-02-23 18:11:09 +0000
commit411b6640cee0cb429edafa51006948eff5a4ef9f (patch)
tree592938fc3f87176880aebeb85576fe6813add561 /rc
parent7d4143ee7222243b18db9d72627838803228d72b (diff)
downloadcore-411b6640cee0cb429edafa51006948eff5a4ef9f.tar.gz
core-411b6640cee0cb429edafa51006948eff5a4ef9f.tar.xz
rc: updated for udev, activate swap after mounting filesystem
Diffstat (limited to 'rc')
-rw-r--r--rc/.md5sum6
-rw-r--r--rc/Pkgfile2
-rw-r--r--rc/inittab14
-rwxr-xr-xrc/rc15
-rwxr-xr-xrc/rc.single9
5 files changed, 25 insertions, 21 deletions
diff --git a/rc/.md5sum b/rc/.md5sum
index fbc8f182..1a1f5aa9 100644
--- a/rc/.md5sum
+++ b/rc/.md5sum
@@ -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
diff --git a/rc/Pkgfile b/rc/Pkgfile
index 409fc35f..b5a32761 100644
--- a/rc/Pkgfile
+++ b/rc/Pkgfile
@@ -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() {
diff --git a/rc/inittab b/rc/inittab
index ac46e43f..ba613fd6 100644
--- a/rc/inittab
+++ b/rc/inittab
@@ -17,13 +17,13 @@ rm:2:wait:/etc/rc.multi
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
diff --git a/rc/rc b/rc/rc
index 7edcccc8..fc50051d 100755
--- a/rc/rc
+++ b/rc/rc
@@ -8,11 +8,10 @@ echo "The system is coming up. Please wait."
# Load configuration
. /etc/rc.conf
-# Start device management daemon
-/sbin/devfsd /dev
-
-# Activate swap
-/sbin/swapon -a
+# Start udev
+/bin/mount -n -t proc none /proc
+/bin/mount -n -t sysfs none /sys
+/sbin/start_udev
# Mount root read-only
/bin/mount -n -o remount,ro /
@@ -41,9 +40,13 @@ fi
# 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
diff --git a/rc/rc.single b/rc/rc.single
index 6940bd33..3b37428a 100755
--- a/rc/rc.single
+++ b/rc/rc.single
@@ -26,10 +26,11 @@ if [ "$PREVLEVEL" != "N" ]; then
/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

Generated by cgit