linux-atm: remove defunct ipoa protocol support
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 26 Jun 2012 15:40:03 +0000 (15:40 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 26 Jun 2012 15:40:03 +0000 (15:40 +0000)
SVN-Revision: 32504

package/linux-atm/Makefile
package/linux-atm/files/ipoa.sh [deleted file]

index b6b252d14395621a24b5b1a279776b8836cb3cd8..1ac0a219a2900c662d56f73a651e69a9cf4d379b 100644 (file)
@@ -100,8 +100,6 @@ endef
 define Package/atm-tools/install
        $(INSTALL_DIR) $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/arpd/atmarp{,d} $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/lib/network
-       $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
 
 #
 #The following is disabled by default but still useful for some debugging
diff --git a/package/linux-atm/files/ipoa.sh b/package/linux-atm/files/ipoa.sh
deleted file mode 100644 (file)
index 5d6da1e..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-scan_ipoa() {
-       config_get ifname "$1" ifname
-       ipoadev="${ipoadev:-0}"
-       config_get unit "$1" unit
-       [ -z "$unit" ] && {
-               config_set "$1" ifname "atm$ipoadev"
-               config_set "$1" unit "$ipoadev"
-               ipoadev="$(($ipoadev + 1))"
-       }
-}
-
-setup_interface_ipoa() {
-       local iface="$1"
-       local config="$2"
-       
-       config_get device "$config" device
-       config_get vpi "$config" vpi
-       vpi=${vpi:-8}
-       config_get vci "$config" vci
-       vci=${vci:-36}
-
-       config_get encaps "$config" encaps
-       case "$encaps" in
-               1|vc) ENCAPS="vc-encaps" ;;
-               *) ENCAPS="llc-encaps" ;;
-       esac
-
-       config_get mtu "$cfg" mtu
-       mtu=${mtu:-1500}
-       atmarp -c $device
-       ifconfig $device $ip netmask $mask mtu $mtu up
-       atmarp -s $gw $vpi.$vci null
-       route add default gw $gw
-}