summaryrefslogtreecommitdiffstats
path: root/samples/pktgen/pktgen.conf-1-1-ip6-rdos
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2015-02-24 03:33:08 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-24 04:04:21 +0100
commit16b5d0c4a24c793ca3584ca5c50fd5f8f2166120 (patch)
tree9da3c9b262e675dc8be5afd0e5e7f877363ead81 /samples/pktgen/pktgen.conf-1-1-ip6-rdos
parentsamples/pktgen: Use bash as interpreter (diff)
downloadlinux-16b5d0c4a24c793ca3584ca5c50fd5f8f2166120.tar.xz
linux-16b5d0c4a24c793ca3584ca5c50fd5f8f2166120.zip
samples/pktgen: Trap SIGINT
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>
Diffstat (limited to 'samples/pktgen/pktgen.conf-1-1-ip6-rdos')
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-1-ip6-rdos1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/pktgen/pktgen.conf-1-1-ip6-rdos b/samples/pktgen/pktgen.conf-1-1-ip6-rdos
index 58dd0524f264..06b502834cc7 100755
--- a/samples/pktgen/pktgen.conf-1-1-ip6-rdos
+++ b/samples/pktgen/pktgen.conf-1-1-ip6-rdos
@@ -57,6 +57,7 @@ PGDEV=/proc/net/pktgen/eth1
PGDEV=/proc/net/pktgen/pgctrl
echo "Running... ctrl^C to stop"
+ trap true INT
pgset "start"
echo "Done"