From 3fe927c19c9a49ee5fec05135d9bcf726d05c2cc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 10 Jun 2009 20:05:21 +0000 Subject: core/busybox-initscripts: new aport We move many scripts from alpine-baselayout to this package. --- core/busybox-initscripts/mdev.initd | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 core/busybox-initscripts/mdev.initd (limited to 'core/busybox-initscripts/mdev.initd') diff --git a/core/busybox-initscripts/mdev.initd b/core/busybox-initscripts/mdev.initd new file mode 100644 index 0000000000..e9309c7006 --- /dev/null +++ b/core/busybox-initscripts/mdev.initd @@ -0,0 +1,33 @@ +#!/sbin/runscript + +depend() { + provide dev + need sysfs mdev-mount + before checkfs fsck + keyword novserver +} + +start() { + # check if udev is specified on cmd line + if get_bootparam "udev"; then + ewarn "Skipping mdev as udev requested in kernel cmdline" + return 0 + fi + + ebegin "Starting busybox mdev" + mkdir -p /dev + + # use mdev for hotplug + echo "/sbin/mdev" > /proc/sys/kernel/hotplug + + # create devices + mdev -s + eend $? +} + +stop() { + ebegin "Stopping busybox mdev" + echo "" > /proc/sys/kernel/hotplug + eend +} + -- cgit v1.2.3