summaryrefslogtreecommitdiff
path: root/packages/psmisc
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2006-10-06 13:30:56 +0000
committerGraeme Gregory <dp@xora.org.uk>2006-10-06 13:30:56 +0000
commit2b63cbcfe2fe0057b67e533b471ce10b93811608 (patch)
treed7b39011dc292addc1221586f6253fb0ac160a08 /packages/psmisc
parent5725d0e7e830d66622e73ccf2ab1a50ce9b1e801 (diff)
packages/psmisc/psmisc.inc : fuser is now supplied by busybox as well, update
this to use update-alternatives.
Diffstat (limited to 'packages/psmisc')
-rw-r--r--packages/psmisc/psmisc.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/psmisc/psmisc.inc b/packages/psmisc/psmisc.inc
index 31647c7b4b..810cc5309f 100644
--- a/packages/psmisc/psmisc.inc
+++ b/packages/psmisc/psmisc.inc
@@ -20,7 +20,7 @@ PACKAGES = "${PN} fuser fuser-doc \
FILES_${PN} = ""
RDEPENDS_${PN} = "fuser killall pstree"
-FILES_fuser = "${bindir}/fuser"
+FILES_fuser = "${bindir}/fuser.${PN}"
FILES_fuser-doc = "${mandir}/man1/fuser*"
FILES_killall = "${bindir}/killall.${PN}"
@@ -31,6 +31,7 @@ FILES_pstree-doc = "${mandir}/man1/pstree*"
do_install_append() {
mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN}
+ mv ${D}${bindir}/fuser ${D}${bindir}/fuser.${PN}
}
pkg_postinst_killall() {
@@ -40,3 +41,12 @@ pkg_postinst_killall() {
pkg_postrm_killall() {
update-alternatives --remove ${bindir}/killall killall.${PN}
}
+
+pkg_postinst_fuser() {
+ update-alternatives --install ${bindir}/fuser fuser fuser.${PN} 90
+}
+
+pkg_postrm_fuser() {
+ update-alternatives --remove ${bindir}/fuser fuser.${PN}
+}
+