aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/sysvinit/sysvinit_2.86.bb
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-09-30 12:27:21 -0700
committerTom Rini <tom_rini@mentor.com>2010-09-30 12:27:21 -0700
commita9a0e0250a54bd59bdeb05c6b957ca7426828fad (patch)
tree3b6e80660004cdf65f5eea5fe0992129d1aee979 /recipes/sysvinit/sysvinit_2.86.bb
parent6fd8d018aede97289fcaa9597d8190b39d30abe5 (diff)
downloadopenembedded-a9a0e0250a54bd59bdeb05c6b957ca7426828fad.tar.gz
openembedded-a9a0e0250a54bd59bdeb05c6b957ca7426828fad.tar.bz2
openembedded-a9a0e0250a54bd59bdeb05c6b957ca7426828fad.zip
sysvinit: Add mountpoint to u-a
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/sysvinit/sysvinit_2.86.bb')
-rw-r--r--recipes/sysvinit/sysvinit_2.86.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb
index aca524927c..6ab5290477 100644
--- a/recipes/sysvinit/sysvinit_2.86.bb
+++ b/recipes/sysvinit/sysvinit_2.86.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
SECTION = "base"
LICENSE = "GPLv2+"
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r59"
+PR = "r60"
# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
# Set PACKAGE_ARCH appropriately.
@@ -98,6 +98,7 @@ EOF
done
mv ${D}${base_sbindir}/init ${D}${base_sbindir}/init.${PN}
mv ${D}${base_bindir}/pidof ${D}${base_bindir}/pidof.${PN}
+ mv ${D}${base_bindir}/mountpoint ${D}${base_bindir}/mountpoint.${PN}
mv ${D}${base_sbindir}/halt ${D}${base_sbindir}/halt.${PN}
mv ${D}${base_sbindir}/reboot ${D}${base_sbindir}/reboot.${PN}
mv ${D}${base_sbindir}/shutdown ${D}${base_sbindir}/shutdown.${PN}
@@ -109,6 +110,7 @@ EOF
pkg_postinst_${PN} () {
#!/bin/sh
+update-alternatives --install ${base_bindir}/mountpoint mountpoint mountpoint.${PN} 200
update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200
@@ -124,6 +126,7 @@ update-alternatives --install ${bindir}/wall wall wall.${PN} 200
pkg_prerm_${PN} () {
#!/bin/sh
+update-alternatives --remove mountpoint mountpoint.${PN}
update-alternatives --remove halt halt.${PN}
update-alternatives --remove reboot reboot.${PN}
update-alternatives --remove shutdown shutdown.${PN}