[oe-commits] Tom Rini : sysvinit: Add mountpoint to u-a
git version control
git at git.openembedded.org
Thu Sep 30 19:33:41 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: a9a0e0250a54bd59bdeb05c6b957ca7426828fad
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a9a0e0250a54bd59bdeb05c6b957ca7426828fad
Author: Tom Rini <tom_rini at mentor.com>
Date: Thu Sep 30 12:27:21 2010 -0700
sysvinit: Add mountpoint to u-a
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
recipes/sysvinit/sysvinit_2.86.bb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb
index aca5249..6ab5290 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}
More information about the Openembedded-commits
mailing list