Skip to content

Commit

Permalink
lkl tools: allow run_netperf.sh to run under dash
Browse files Browse the repository at this point in the history
Even if run_netperf.sh uses #!/bin/bash it is invoked via sh which under
Ubuntu may be dash.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
  • Loading branch information
Octavian Purdila committed Jun 18, 2016
1 parent 460736d commit 059a2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/lkl/tests/run_netperf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 059a2dc

Please sign in to comment.