From 059a2dc3108589d0bc8903afc433f69288d4d7f3 Mon Sep 17 00:00:00 2001 From: Octavian Purdila Date: Sat, 18 Jun 2016 22:31:49 +0300 Subject: [PATCH] lkl tools: allow run_netperf.sh to run under dash Even if run_netperf.sh uses #!/bin/bash it is invoked via sh which under Ubuntu may be dash. Signed-off-by: Octavian Purdila --- tools/lkl/tests/run_netperf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lkl/tests/run_netperf.sh b/tools/lkl/tests/run_netperf.sh index 0be8b8475fe687..fb7e1fbb98d091 100644 --- a/tools/lkl/tests/run_netperf.sh +++ b/tools/lkl/tests/run_netperf.sh @@ -56,11 +56,11 @@ then exit 1 fi -function clean { +clean() { sudo killall netserver &> /dev/null || true } -function clean_with_tap { +clean_with_tap() { sudo ip link set dev $LKL_HIJACK_NET_IFPARAMS down &> /dev/null || true sudo ip tuntap del dev $LKL_HIJACK_NET_IFPARAMS mode tap &> /dev/null || true clean