summaryrefslogtreecommitdiff
path: root/packages/udev
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-25 00:40:14 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-25 00:40:14 +0000
commit6af70483462fff9ebae43dec06da691f4961758e (patch)
treefa6d4445f829ceae7318cbd5894c59f887d92791 /packages/udev
parent687d3e08158ccecfefcf0aebdc73afc3848afe68 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 15:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 14:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 13:40:09-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 05:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 22:32:58+10:30 (none)!rwhitby Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded into home.(none):/home/slug/openembedded 2004/12/24 22:32:15+10:30 (none)!rwhitby Unslung 3.13-alpha with recovery mode support 2004/12/24 03:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 02:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 01:40:15-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 19:00:07-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 16:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 13:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/24 07:20:15+10:30 (none)!rwhitby Unslung 3.12-alpha, including the new maintenance mode 2004/12/23 12:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 08:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 07:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 04:40:09-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 03:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/23 02:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 18:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 15:40:09-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 13:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 12:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 09:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 06:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 05:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 03:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 01:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/22 00:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 23:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 22:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 21:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 15:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 11:40:09-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 09:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 08:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 07:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 06:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 05:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/21 04:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 13:40:11-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 11:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 10:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 09:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 08:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 05:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/19 16:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/20 08:44:35+10:30 (none)!rwhitby Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded into home.(none):/home/slug/openembedded 2004/12/20 08:43:47+10:30 (none)!rwhitby Unslung 3.11-alpha (including maintenance mode, which loads the jffs2 rootfs into a ramdisk if /.ramdisk exists in the jffs2 rootfs). 2004/12/19 11:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/19 09:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/19 08:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/19 07:40:09-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/19 05:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/18 14:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/18 11:40:11-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/18 05:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/17 23:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/17 23:12:58+10:30 (none)!rwhitby Bumped the unslung-able package revision. 2004/12/17 23:11:28+10:30 (none)!rwhitby Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded into home.(none):/home/slug/openembedded 2004/12/17 23:10:13+10:30 (none)!rwhitby Enabled NFS (both server and client) in unslung-able. Some of it should really be modules, but we can sort that out later. 2004/12/16 23:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/16 16:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/16 10:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/15 22:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/15 15:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/15 09:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/15 22:09:59+10:30 (none)!rwhitby Changed the RDEPENDS in the glibc_2.2.5.bb package for Unslung 2004/12/15 21:51:27+10:30 (none)!rwhitby Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded into home.(none):/home/slug/openembedded 2004/12/15 21:48:53+10:30 (none)!rwhitby One more change for Unslung-3.10-alpha - fixes the previous changeset 2004/12/15 21:45:12+10:30 (none)!rwhitby Couple more changes for Unslung-3.10-alpha - fixes it previous changeset 2004/12/15 21:34:46+10:30 (none)!rwhitby Unslung 3.10-alpha: Added one extra sd{a,b,c} device. Added libc6-unslung to the root filesystem (for librt). Added rc.unslung-stop and called it during rc.reboot and rc.halt. Now diverts to rc.unslung-start (but still does rc.unslung as well for backwards compatibitily, but this will be removed in Unslung 4.x). 2004/12/15 01:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 14:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 11:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 10:40:04-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 09:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 06:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 09:31:16-05:00 uottawa.ca!stephane Make use of links.conf in udev optional so to prevent ugly startup errors when it's missing. 2004/12/14 09:17:24-05:00 uottawa.ca!stephane Merge bk://nslu2-linux.bkbits.net/openembedded into gauss.mathstat.uottawa.ca:/local/openslug/openembedded 2004/12/14 09:15:12-05:00 uottawa.ca!stephane Merge bk://oe-devel.bkbits.net/openembedded into gauss.mathstat.uottawa.ca:/local/openslug/openembedded 2004/12/14 05:40:13-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 03:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/14 01:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/13 06:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 16:40:12-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 11:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 10:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 06:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 05:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/12 23:19:52+10:30 (none)!rwhitby Moved the nslu2 kernel patch to nslu.sf.net 2004/12/11 16:40:04-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 14:40:06-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 13:40:04-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 07:40:10-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 06:40:05-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 04:40:08-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/11 20:27:05+10:30 (none)!rwhitby Merge bk://nslu2-linux@nslu2-linux.bkbits.net/openembedded into home.(none):/home/slug/openembedded 2004/12/11 20:26:08+10:30 (none)!rwhitby Unslung 3.9 changeset - moved a number of -able kernel changes into -standard. 2004/12/10 16:40:07-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/10 15:40:15-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/10 13:12:25-08:00 bkbits.net!nslu2-linux.adm Merge bkbits.net:/repos/o/oe-devel/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/10 16:10:40-05:00 uottawa.ca!stephane Merge bk://oe-devel.bkbits.net/openembedded into gauss.mathstat.uottawa.ca:/local/openslug/openembedded 2004/12/10 13:59:08-05:00 uottawa.ca!stephane Merge bk://openembedded.bkbits.net/openembedded into gauss.mathstat.uottawa.ca:/local/openslug/openembedded 2004/12/10 20:52:05+10:30 (none)!rwhitby Set uclibc to a default stable working CVS date in nslu2.conf BKrev: 41ccb6ee7vorPwpxhrZ3bxSSECTYZQ
Diffstat (limited to 'packages/udev')
-rw-r--r--packages/udev/udev-042/init178
1 files changed, 178 insertions, 0 deletions
diff --git a/packages/udev/udev-042/init b/packages/udev/udev-042/init
index e69de29bb2..266628e971 100644
--- a/packages/udev/udev-042/init
+++ b/packages/udev/udev-042/init
@@ -0,0 +1,178 @@
+#!/bin/sh -e
+
+PATH="/usr/sbin:/usr/bin:/sbin:/bin"
+
+UDEVSTART=/sbin/udevstart
+
+# default maximum size of the /dev ramfs
+ramfs_size="1M"
+
+[ -x $UDEVSTART ] || exit 0
+
+. /etc/udev/udev.conf
+
+case "$(uname -r)" in
+ 2.[012345].*)
+ echo "udev requires a kernel >= 2.6, not started."
+ exit 0
+ ;;
+esac
+
+if ! grep -q '[[:space:]]ramfs$' /proc/filesystems; then
+ echo "udev requires ramfs support, not started."
+ exit 0
+fi
+
+if [ ! -e /proc/sys/kernel/hotplug ]; then
+ echo "udev requires hotplug support, not started."
+ exit 0
+fi
+
+##############################################################################
+
+# we need to unmount /dev/pts/ and remount it later over the ramfs
+unmount_devpts() {
+ if mountpoint -q /dev/pts/; then
+ umount -l /dev/pts/
+ fi
+
+ if mountpoint -q /dev/shm/; then
+ umount -l /dev/shm/
+ fi
+}
+
+# mount a ramfs over /dev, if somebody did not already do it
+mount_ramfs() {
+ if grep -E -q "^[^[:space:]]+ /dev ramfs" /proc/mounts; then
+ return 0
+ fi
+
+ # /.dev is used by /sbin/MAKEDEV to access the real /dev directory.
+ # if you don't like this, remove /.dev/.
+ [ -d /.dev ] && mount --bind /dev /.dev
+
+ echo -n "Mounting a ramfs over /dev..."
+ mount -n -o size=$ramfs_size,mode=0755 -t ramfs none /dev
+ echo "done."
+}
+
+# I hate this hack. -- Md
+make_extra_nodes() {
+ if [ -f /etc/udev/links.conf ]; then
+ grep '^[^#]' /etc/udev/links.conf | \
+ while read type name arg1; do
+ [ "$type" -a "$name" -a ! -e "/dev/$name" -a ! -L "/dev/$name" ] ||continue
+ case "$type" in
+ L)
+ ln -s $arg1 /dev/$name
+ ;;
+ D)
+ mkdir -p /dev/$name
+ ;;
+ M)
+ mknod --mode=600 /dev/$name $arg1
+ ;;
+ *)
+ echo "unparseable line ($type $name $arg1)"
+ ;;
+ esac
+ done
+ fi
+}
+
+##############################################################################
+
+if [ "$udev_root" != "/dev/" ]; then
+ echo "WARNING: udev_root != /dev/"
+
+case "$1" in
+ start)
+ if [ -e "$udev_root/.udev.tdb" ]; then
+ if mountpoint -q /dev/; then
+ echo "FATAL: udev is already active on $udev_root."
+ exit 1
+ else
+ echo "WARNING: .udev.tdb already exists on the old $udev_root!"
+ fi
+ fi
+ mount -n -o size=$ramfs_size,mode=0755 -t ramfs none $udev_root
+ echo -n "Creating initial device nodes..."
+ $UDEVSTART
+ echo "done."
+ ;;
+ stop)
+ start-stop-daemon -K -x /sbin/udevd
+ echo -n "Unmounting $udev_root..."
+ # unmounting with -l should never fail
+ if umount -l $udev_root; then
+ echo "done."
+ else
+ echo "failed."
+ fi
+ ;;
+ restart|force-reload)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: /etc/init.d/udev {start|stop|restart|force-reload}"
+ exit 1
+ ;;
+esac
+
+ exit 0
+fi # udev_root != /dev/
+
+##############################################################################
+# When modifying this script, do not forget that between the time that
+# the new /dev has been mounted and udevstart has been run there will be
+# no /dev/null. This also means that you cannot use the "&" shell command.
+
+case "$1" in
+ start)
+ if [ -e "$udev_root/.udev.tdb" ]; then
+ if mountpoint -q /dev/; then
+ echo "FATAL: udev is already active on $udev_root."
+ exit 1
+ else
+ echo "WARNING: .udev.tdb already exists on the old $udev_root!"
+ fi
+ fi
+ unmount_devpts
+ mount_ramfs
+ ACTION=add
+ echo -n "Creating initial device nodes..."
+ $UDEVSTART
+ make_extra_nodes
+ echo "done."
+# /etc/init.d/mountvirtfs start
+ ;;
+ stop)
+ start-stop-daemon -K -x /sbin/udevd
+ unmount_devpts
+ echo -n "Unmounting /dev..."
+ # unmounting with -l should never fail
+ if umount -l /dev; then
+ echo "done."
+ umount -l /.dev || true
+# /etc/init.d/mountvirtfs start
+ else
+ echo "failed."
+ fi
+ ;;
+ restart|force-reload)
+ start-stop-daemon -K -x /sbin/udevd
+ echo -n "Recreating device nodes..."
+ ACTION=add
+ $UDEVSTART
+ make_extra_nodes
+ echo "done."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/udev {start|stop|restart|force-reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
+