[Initng-svn] r2711 - initng/initfiles/system
svn at initng.thinktux.net
svn at initng.thinktux.net
Wed Jan 4 16:16:33 CET 2006
Author: jimmy
Date: Wed Jan 4 16:16:32 2006
New Revision: 2711
Modified:
initng/initfiles/system/initial.ii
Log:
Dual system/initial/filldev fixed.
Modified: initng/initfiles/system/initial.ii
==============================================================================
--- initng/initfiles/system/initial.ii (original)
+++ initng/initfiles/system/initial.ii Wed Jan 4 16:16:32 2006
@@ -33,9 +33,8 @@
# Warning, it depends on udevd to run, or no hotplug request
# can succeed.
service system/initial/filldev {
- # /dev should exist.
- need = system/initial/mountvirtfs system/initial/udevd;
- critical;
+ need = system/initial/mountvirtfs; # it doesn't need system/initial/udevd
+ critical; # this script can't be fail.
script start = {
# which system needs this?
if [ -e /etc/udev/links.conf ]
@@ -106,9 +105,21 @@
then
exec @/sbin/udevstart@
fi
+ echo "Mounting devpts at /dev/pts ..."
+ @mkdir@ -p /dev/pts && @mount@ -n -t devpts -o gid=5,mode=0620 none /dev/pts &
+
+ echo "Mounting devshm at /dev/shm ..."
+ @mkdir@ -p /dev/shm && @mount@ -n -t tmpfs none /dev/shm &
+
+ [ ! -e /dev/MAKEDEV -a @/sbin/MAKEDEV@ ] && \
+ @ln@ -fs @/sbin/MAKEDEV@ /dev/MAKEDEV &
+
+ wait
+ exit 0
};
}
+
# udevd to handle udev requests
daemon system/initial/udevd {
# first we must run udevstart or something like, because, it will kill our udevd.
@@ -141,24 +152,6 @@
};
}
-# fill the /dev with all devices system have
-service system/initial/filldev {
- need = system/initial/mountvirtfs; # it doesn't need system/initial/udev
- critical; # this script can't be fail.
- script start = {
- echo "Mounting devpts at /dev/pts ..."
- @mkdir@ -p /dev/pts && @mount@ -n -t devpts -o gid=5,mode=0620 none /dev/pts &
-
- echo "Mounting devshm at /dev/shm ..."
- @mkdir@ -p /dev/shm && @mount@ -n -t tmpfs none /dev/shm &
-
- [ ! -e /dev/MAKEDEV -a @/sbin/MAKEDEV@ ] && \
- @ln@ -fs @/sbin/MAKEDEV@ /dev/MAKEDEV &
-
- wait
- exit 0
- };
-}
service system/initial/loglevel {
# Set the console loglevel to 1 for a cleaner boot
More information about the Initng-svn
mailing list