From 0dd6753c09a91d9046f9508f6f02c58212df8e5e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 4 Jun 2013 12:21:44 +0000 Subject: Drop legacy firewall package SVN-Revision: 36837 --- package/network/config/firewall/files/bin/fw | 49 ---------------------------- 1 file changed, 49 deletions(-) delete mode 100644 package/network/config/firewall/files/bin/fw (limited to 'package/network/config/firewall/files/bin/fw') diff --git a/package/network/config/firewall/files/bin/fw b/package/network/config/firewall/files/bin/fw deleted file mode 100644 index 5d20cc83ef..0000000000 --- a/package/network/config/firewall/files/bin/fw +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -FW_LIBDIR=/lib/firewall - -. /lib/functions.sh -. ${FW_LIBDIR}/fw.sh - -case "$(type fw)" in - *function) ;; - *) exit 255;; -esac - -usage() { - echo $0 "" "" "" "" "" "{" "" "}" - exit 0 -} - -cmd=$1 -shift -case "$cmd" in - --help|help) usage ;; - start|stop|reload|restart) - . ${FW_LIBDIR}/core.sh - fw_$cmd - exit $? - ;; -esac - -fam=$1 -shift -case "$fam" in - ip) - fam=i - if [ $# -gt 2 ]; then - for p in $(seq 2 $(($# - 1))); do - if eval "[ \$$p == '}' ]"; then - fam=I - break - fi - done - fi ;; - ip4) fam=4 ;; - ip6) fam=6 ;; - arp) fam=a ;; - eth) fam=e ;; - -*) exec $0 $cmd ${fam##*-} "$@" ;; -esac - -fw "$cmd" "$fam" "$@" -exit $? -- cgit v1.2.3