samples: pktgen: fix append mode failed issue
[linux-2.6-microblaze.git] / samples / pktgen / pktgen_sample03_burst_single_flow.sh
index 8bf2fdf..8f8ed1a 100755 (executable)
@@ -25,6 +25,10 @@ root_check_run_with_sudo "$@"
 
 # Parameter parsing via include
 source ${basedir}/parameters.sh
+
+# Trap EXIT first
+trap_exit
+
 # Set some default params, if they didn't get set
 if [ -z "$DEST_IP" ]; then
     [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"