Commit f2418e70 authored by Toke Hoiland-Jorgensen's avatar Toke Hoiland-Jorgensen

Merge branch 'master' of kau.toke.dk:test-scripts

parents 2577f11c 374d9754
#!/bin/bash
exit 0
#exit 0
DELAY="$1"
die()
......@@ -22,8 +22,7 @@ else
DELAY_IF=$[$DELAY/2]
for IFACE in $IFACES; do
tc qdisc del dev $IFACE root 2>/dev/null
tc qdisc add dev $IFACE root netem delay ${DELAY_IF}ms || exit 1
for PIPE in 110 111; do
ipfw pipe $PIPE config delay ${DELAY_IF}ms
done
fi
......@@ -13,7 +13,7 @@ MODULE=/usr/local/lib/ipfw_mod.ko
[ "$IFACE" == "eth1" ] || exit 0
grep -q ipfw_mode /proc/modules || insmod "$MODULE"
grep -q ipfw_mod /proc/modules || insmod "$MODULE"
ipfw -f pipe flush
ipfw -f flush
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment