aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/ipv6-support/files/ipv6.hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/ipv6/ipv6-support/files/ipv6.hotplug')
-rw-r--r--package/network/ipv6/ipv6-support/files/ipv6.hotplug9
1 files changed, 2 insertions, 7 deletions
diff --git a/package/network/ipv6/ipv6-support/files/ipv6.hotplug b/package/network/ipv6/ipv6-support/files/ipv6.hotplug
index e3379b6b2c..52cdf3bde0 100644
--- a/package/network/ipv6/ipv6-support/files/ipv6.hotplug
+++ b/package/network/ipv6/ipv6-support/files/ipv6.hotplug
@@ -3,16 +3,11 @@
[ "$DEVICE" == "lo" ] && exit 0
. /lib/ipv6/support.sh
-local mode
-config_get mode "$INTERFACE" mode
-
case "$ACTION" in
ifup)
- [ "$mode" != "downstream" ] && enable_static $INTERFACE $DEVICE
- [ "$mode" == "upstream" ] && enable_upstream $INTERFACE $DEVICE
- [ "$mode" == "downstream" ] && enable_downstream $INTERFACE $DEVICE
+ enable_interface "$INTERFACE" "$DEVICE"
;;
ifdown)
- disable_interface $INTERFACE $DEVICE
+ disable_interface "$INTERFACE" "$DEVICE"
;;
esac