xeno add
[firewall-squeep] / shaper.sh
index 5b55d3fd4b8b3ebbfd78f35c4725262956c8a448..3b2c6229d4899e58b18e64d2a2e424f1059b38b6 100755 (executable)
--- 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