mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 21:00:14 +02:00
[backfire] merge r24194, r25471 (#8845)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25474 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6d44b9f998
commit
aba136d93a
@ -3,6 +3,12 @@
|
||||
|
||||
# DEBUG="echo"
|
||||
|
||||
do_sysctl() {
|
||||
[ -n "$2" ] && \
|
||||
sysctl -n -e -w "$1=$2" >/dev/null || \
|
||||
sysctl -n -e "$1"
|
||||
}
|
||||
|
||||
find_config() {
|
||||
local iftype device iface ifaces ifn
|
||||
for ifn in $interfaces; do
|
||||
@ -403,6 +409,7 @@ unbridge() {
|
||||
|
||||
for brdev in $(brctl show | awk '$2 ~ /^[0-9].*\./ { print $1 }'); do
|
||||
brctl delif "$brdev" "$dev" 2>/dev/null >/dev/null
|
||||
do_sysctl "net.ipv6.conf.$dev.disable_ipv6" 0
|
||||
done
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user