Otherwise ^C stops the script, not just pktgen.
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"