samples/pktgen: Use bash as interpreter
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 24 Feb 2015 02:32:59 +0000 (02:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Feb 2015 03:04:10 +0000 (22:04 -0500)
These scripts use the non-POSIX 'function' and 'local' keywords so
they won't work with every /bin/sh.  We could drop 'function' as it is
a no-op, but 'local' makes for cleaner scripts.  Require use of bash.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/pktgen/pktgen.conf-1-1
samples/pktgen/pktgen.conf-1-1-flows
samples/pktgen/pktgen.conf-1-1-ip6
samples/pktgen/pktgen.conf-1-1-ip6-rdos
samples/pktgen/pktgen.conf-1-1-rdos
samples/pktgen/pktgen.conf-1-2
samples/pktgen/pktgen.conf-2-1
samples/pktgen/pktgen.conf-2-2

index e32782e06cafedd185690a2c0e95563b5c7ca396..bb5398367d4baf909f14595c87400602ebe6834f 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index ea859e441f6e0a04ce8e4d4423176b1510b1ba0d..db20ac8a66a7e737ff62efe0f201f3fe3f4e6fae 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index 0a81fd92426b572beb2877ae465df00de55c183a..e22199d1ed76a648fe341464af3d5a8e9666f2f0 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index 21c3b1589fa7b39570dfc2d2d92f290ca1208e5f..58dd0524f264430dbed0acb8840f9994d72bc0f3 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index fc4e345c4a346441e44459f4703e73da53f0e882..2834ac789721893d054bec153121b229afd4ea73 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index dfea8e6896d48d17adef9d2ae6f8f85006147e02..b519dab262ce9e85bebf6d6c32bc63eefb66ad2c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index 5d2fe4cdbd96b5bdacd9e19cce56790b4c63ee31..6f57a558d817cb41ea042ebf45be6a9af7a15400 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
index 474f200edcfbe1426268fe9e35da50bf858e380d..aa3225280521eeb0139eb30399903a41e41436cf 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen