summaryrefslogtreecommitdiff
path: root/packages/busybox/busybox.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-18 12:28:10 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-18 12:28:10 +0100
commit639426975208c9d406e4cc7dc406926d6831a4f1 (patch)
tree85b7b02ccb33feba0ab9ebae1478fe1a04b30cd7 /packages/busybox/busybox.inc
parent050cb9176ef250702da88727a3e4de11bb6cc8bc (diff)
busybox: split out mdev stuff to mdev package (package, not recipe)
Diffstat (limited to 'packages/busybox/busybox.inc')
-rw-r--r--packages/busybox/busybox.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/busybox/busybox.inc b/packages/busybox/busybox.inc
index e377406421..6d0988532b 100644
--- a/packages/busybox/busybox.inc
+++ b/packages/busybox/busybox.inc
@@ -174,3 +174,19 @@ pkg_prerm_${PN} () {
sh /usr/bin/update-alternatives --remove $bn $to
done </etc/busybox.links
}
+
+PACKAGES =+ "mdev"
+FILES_mdev = "${sysconfdir}/mdev ${sysconfdir}/mdev.conf ${sysconfdir}/init.d/mdev"
+RDEPENDS_mdev += "${PN}"
+
+pkg_postinst_mdev() {
+if test "x$D" != "x"; then
+ OPT="-r $D"
+else
+ OPT="-s"
+fi
+ update-rc.d $OPT mdev start 06 S .
+}
+
+
+