From 6cc3afb23e205e89d3c1dad383639cb384c94596 Mon Sep 17 00:00:00 2001 From: cyrus Date: Mon, 3 Dec 2012 09:18:53 +0000 Subject: 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 --- package/network/ipv6/ipv6-support/files/ipv6.hotplug | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'package/network/ipv6/ipv6-support/files/ipv6.hotplug') 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 -- cgit v1.2.3