diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-29 12:59:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-29 12:59:15 +0000 |
commit | d3efcab8137275a1cc5d7548a583e532d082308f (patch) | |
tree | 9a0d5f472a7c8c974e45e353c709fa0aedb3affc /package/6to4/files.old/6to4.hotplug | |
parent | fdcc84f78ef24328dc7d570fa717f0fd9a0f7113 (diff) | |
download | upstream-d3efcab8137275a1cc5d7548a583e532d082308f.tar.gz upstream-d3efcab8137275a1cc5d7548a583e532d082308f.tar.bz2 upstream-d3efcab8137275a1cc5d7548a583e532d082308f.zip |
6to4: remove old network scripts
SVN-Revision: 31983
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 1e3d26c418..0000000000 --- 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 |