From 2b63cbcfe2fe0057b67e533b471ce10b93811608 Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Fri, 6 Oct 2006 13:30:56 +0000 Subject: packages/psmisc/psmisc.inc : fuser is now supplied by busybox as well, update this to use update-alternatives. --- packages/psmisc/psmisc.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/psmisc') 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} +} + -- cgit v1.2.3