summaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/ipv6-support/files/ipv6.hotplug
diff options
context:
space:
mode:
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-03 09:18:53 +0000
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-03 09:18:53 +0000
commit6cc3afb23e205e89d3c1dad383639cb384c94596 (patch)
treea5d9e3e1590124b8859965dff2621886cd544548 /package/network/ipv6/ipv6-support/files/ipv6.hotplug
parent510d695acf3404f9e205b2654bae5bc2991088bc (diff)
ipv6-support: Second Iteration
* mode 'downstream' renamed to 'router' * mode 'upstream' renamed to 'dhcpv6' * mode 'relay' added * cleanups and minor bugfixes in state handling git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34466 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 e3379b6b2..52cdf3bde 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