aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-15 14:36:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-15 14:36:48 +0000
commitea34ed66476564158dbd31e19043cf6514304b6d (patch)
treed9573142640d018b0fb7027158d92fa69f9ab481 /main
parent2d97a73b3e2d1ff5c9bd5ecf47236ab337519ccc (diff)
downloadaports-ea34ed66476564158dbd31e19043cf6514304b6d.tar.bz2
aports-ea34ed66476564158dbd31e19043cf6514304b6d.tar.xz
main/bridge: fix for ifdown
needs to set link down before deleting bridge
Diffstat (limited to 'main')
-rw-r--r--main/bridge/APKBUILD4
-rwxr-xr-xmain/bridge/bridge.pre-up1
2 files changed, 3 insertions, 2 deletions
diff --git a/main/bridge/APKBUILD b/main/bridge/APKBUILD
index 72b901e630..eae4f1fee9 100644
--- a/main/bridge/APKBUILD
+++ b/main/bridge/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge
pkgver=1.5
-pkgrel=0
+pkgrel=1
pkgdesc="Scripts for configuring network bridge interfaces"
url="http://wiki.alpinelinux.org/wiki/Bridge"
arch="noarch"
@@ -36,4 +36,4 @@ package() {
ln -s ../if-pre-up.d/bridge "$pkgdir"/etc/network/if-post-down.d/bridge
}
-md5sums="ba87e0186cd37bcf6e3515207141bc4e bridge.pre-up"
+md5sums="eb51ae10cafe69c52c85d93d4b2bd4c6 bridge.pre-up"
diff --git a/main/bridge/bridge.pre-up b/main/bridge/bridge.pre-up
index 7cb4160f52..24a65c5ac4 100755
--- a/main/bridge/bridge.pre-up
+++ b/main/bridge/bridge.pre-up
@@ -133,6 +133,7 @@ start)
wait_bridge
;;
stop) del_ports
+ ip link set dev $IFACE down
brctl delbr $IFACE || exit 1
;;
esac