X-Git-Url: http://git.squeep.com/?p=firewall-squeep;a=blobdiff_plain;f=shaper.sh;h=3b2c6229d4899e58b18e64d2a2e424f1059b38b6;hp=5b55d3fd4b8b3ebbfd78f35c4725262956c8a448;hb=HEAD;hpb=57db2162f7b9db5619f946fa5ffac84ab9b0ac03 diff --git a/shaper.sh b/shaper.sh index 5b55d3f..3b2c622 100755 --- a/shaper.sh +++ b/shaper.sh @@ -8,7 +8,11 @@ SHAPE_CHAIN='SHAPER-OUT' set -e -. ./common.sh +# . ./common.sh +IPTABLES=$(which iptables) +IP6TABLES=$(which ip6tables) +IPSET=$(which ipset) +TC=$(which tc) if [ $# -lt 1 ] then @@ -68,7 +72,7 @@ fi if ! $IP6TABLES -t mangle -L "${SHAPE_CHAIN}" >/dev/null 2>&1 then echo "initializing ipv6 chain '${SHAPE_CHAIN}'" - $iP6TABLES -t mangle -N "${SHAPE_CHAIN}" + $IP6TABLES -t mangle -N "${SHAPE_CHAIN}" fi # prioritize small and responsive things