summaryrefslogtreecommitdiff
path: root/packages/bridge-utils
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-02-18 21:06:50 -0600
committerMike Westerhof <mwester@dls.net>2009-02-18 21:08:29 -0600
commit07ff9b4089825ac5c6911f9fb337b6f437c3e52d (patch)
tree98c3318e6089200edb3646d8782e4250490c6d80 /packages/bridge-utils
parentf4d7e6abe321c40503de42f2e44f585f2af174ea (diff)
bridge-utils: add brctl to the update-alternatives list
Diffstat (limited to 'packages/bridge-utils')
-rw-r--r--packages/bridge-utils/bridge-utils_1.2.bb15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/bridge-utils/bridge-utils_1.2.bb b/packages/bridge-utils/bridge-utils_1.2.bb
index 3f1f25dc3f..8bb0905edd 100644
--- a/packages/bridge-utils/bridge-utils_1.2.bb
+++ b/packages/bridge-utils/bridge-utils_1.2.bb
@@ -4,10 +4,23 @@ SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "sysfsutils"
RRECOMMENDS = "kernel-module-bridge"
-PR = "r0"
+PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz"
inherit autotools
EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
+
+do_install () {
+ autotools_do_install
+ mv ${D}${sbindir}/brtl ${D}${sbindir}/brctl.${PN}
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove brctl brctl.${PN}
+}