diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-29 12:59:15 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-29 12:59:15 +0000 |
commit | 227fdd54899732c1536e847dcadb17a49d9c6911 (patch) | |
tree | 18c6b74c0c5fe742f83aca2c94fc82916e280e47 /package/6to4/files.old/6to4.hotplug | |
parent | 149e440f17633cb3d9343afbee99ec369b5de445 (diff) |
6to4: remove old network scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31983 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/6to4/files.old/6to4.hotplug')
-rw-r--r-- | package/6to4/files.old/6to4.hotplug | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/package/6to4/files.old/6to4.hotplug b/package/6to4/files.old/6to4.hotplug deleted file mode 100644 index 1e3d26c41..000000000 --- a/package/6to4/files.old/6to4.hotplug +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -if [ "$ACTION" = ifup ]; then - . /etc/functions.sh - - include /lib/network - scan_interfaces - - update_tunnel() { - local cfg="$1" - - local proto - config_get proto "$cfg" proto - [ "$proto" = 6to4 ] || return 0 - - local wandev - config_get wandev "$cfg" wan_device "$(find_6to4_wanif)" - [ "$wandev" = "$DEVICE" ] || return 0 - - local wanip=$(find_6to4_wanip "$wandev") - - [ -n "$wanip" ] && { - lsmod | grep -q ^sit || { - logger -t 6to4 "Tunneling driver not loaded yet, deferring action" - exit 0 - } - - uci_set_state network "$cfg" ipaddr "$wanip" - ( ifup "$cfg" )& - } - } - - config_foreach update_tunnel interface -fi |