Commit feb669f4 authored by Jouke Witteveen's avatar Jouke Witteveen
Browse files

Fix default interface bindings (third time)

The declare builtin defaults to making variables local.

Previous attempts:
711c4645
e8210827
parent 4d8cb707
......@@ -3,7 +3,7 @@
. "$SUBR_DIR/ip"
: ${IFENSLAVE:=ifenslave}
declare -a BindsToInterfaces
declare -ag BindsToInterfaces
bond_up() {
if is_interface "$Interface"; then
......
......@@ -3,7 +3,7 @@
. "$SUBR_DIR/ip"
: ${BRCTL:=brctl}
declare -a BindsToInterfaces
declare -ag BindsToInterfaces
bridge_up() {
if is_interface "$Interface"; then
......@@ -30,8 +30,8 @@ bridge_up() {
bridge_down() {
for member in "${BindsToInterfaces[@]}"; do
ip link set "$member" promisc off down
$BRCTL delif "$Interface" "$member"
ip link set "$member" promisc off down
$BRCTL delif "$Interface" "$member"
done
ip_unset
......
......@@ -2,7 +2,7 @@
. "$SUBR_DIR/ip"
declare -a BindsToInterfaces
declare -ag BindsToInterfaces
tunnel_up() {
if is_interface "$Interface"; then
......
......@@ -2,7 +2,7 @@
. "$SUBR_DIR/ip"
declare -a BindsToInterfaces
declare -ag BindsToInterfaces
tuntap_up() {
if is_interface "$Interface"; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment