diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-03 16:35:03 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-13 22:57:24 +0100 |
commit | ba92199a6755c983a4d91b5662f3aaa3736d1b3a (patch) | |
tree | aae67de884728cb1597aebffed48ed9d9f0cfa4c | |
parent | 15c269e4bd54aeee21b86dc6084179d1c914eeff (diff) | |
download | openembedded-ba92199a6755c983a4d91b5662f3aaa3736d1b3a.tar.gz |
busybox: provide postrm for package mdev
Remove the mdev runlevel entry on package removal.
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | recipes/busybox/busybox.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc index a9d1e6eaf6..13227c9ecf 100644 --- a/recipes/busybox/busybox.inc +++ b/recipes/busybox/busybox.inc @@ -322,16 +322,16 @@ PACKAGES =+ "${PN}-mdev" FILES_${PN}-mdev = "${sysconfdir}/mdev ${sysconfdir}/mdev.conf ${sysconfdir}/init.d/mdev" RDEPENDS_${PN}-mdev += "${PN}" -PACKAGES =+ "${PN}-linuxrc" -FILES_${PN}-linuxrc = "linuxrc" -RDEPENDS_${PN}-linuxrc += "${PN}" - pkg_postinst_${PN}-mdev() { -if test "x$D" != "x"; then - OPT="-r $D" -else - OPT="-s" -fi + [ -n "$D" ] && OPT="-r $D" || OPT="-s" update-rc.d $OPT mdev start 06 S . } +pkg_postrm_${PN}-mdev() { + [ -n "$D" ] && OPT="-r $D" || OPT="-s" + update-rc.d $OPT -f mdev remove +} + +PACKAGES =+ "${PN}-linuxrc" +FILES_${PN}-linuxrc = "linuxrc" +RDEPENDS_${PN}-linuxrc += "${PN}" |