summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2015-02-24 02:32:59 +0000
committerDavid S. Miller <davem@davemloft.net>2015-02-23 22:04:10 -0500
commitdb72aba30a4f4c15eb20066f1d9c1bcbcf419236 (patch)
tree2e3e0e243f276389691a1caeb822ba837d62da6d
parent06481f22c6fa5a85445770d5adceb261cac6620f (diff)
downloadop-kernel-dev-db72aba30a4f4c15eb20066f1d9c1bcbcf419236.zip
op-kernel-dev-db72aba30a4f4c15eb20066f1d9c1bcbcf419236.tar.gz
samples/pktgen: Use bash as interpreter
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>
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-12
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-1-flows2
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-1-ip62
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-1-ip6-rdos2
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-1-rdos2
-rwxr-xr-xsamples/pktgen/pktgen.conf-1-22
-rwxr-xr-xsamples/pktgen/pktgen.conf-2-12
-rwxr-xr-xsamples/pktgen/pktgen.conf-2-22
8 files changed, 8 insertions, 8 deletions
diff --git a/samples/pktgen/pktgen.conf-1-1 b/samples/pktgen/pktgen.conf-1-1
index e32782e..bb53983 100755
--- a/samples/pktgen/pktgen.conf-1-1
+++ b/samples/pktgen/pktgen.conf-1-1
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-1-1-flows b/samples/pktgen/pktgen.conf-1-1-flows
index ea859e4..db20ac8 100755
--- a/samples/pktgen/pktgen.conf-1-1-flows
+++ b/samples/pktgen/pktgen.conf-1-1-flows
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-1-1-ip6 b/samples/pktgen/pktgen.conf-1-1-ip6
index 0a81fd9..e22199d 100755
--- a/samples/pktgen/pktgen.conf-1-1-ip6
+++ b/samples/pktgen/pktgen.conf-1-1-ip6
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-1-1-ip6-rdos b/samples/pktgen/pktgen.conf-1-1-ip6-rdos
index 21c3b15..58dd052 100755
--- a/samples/pktgen/pktgen.conf-1-1-ip6-rdos
+++ b/samples/pktgen/pktgen.conf-1-1-ip6-rdos
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-1-1-rdos b/samples/pktgen/pktgen.conf-1-1-rdos
index fc4e345..2834ac7 100755
--- a/samples/pktgen/pktgen.conf-1-1-rdos
+++ b/samples/pktgen/pktgen.conf-1-1-rdos
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-1-2 b/samples/pktgen/pktgen.conf-1-2
index dfea8e6..b519dab 100755
--- a/samples/pktgen/pktgen.conf-1-2
+++ b/samples/pktgen/pktgen.conf-1-2
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-2-1 b/samples/pktgen/pktgen.conf-2-1
index 5d2fe4c..6f57a558 100755
--- a/samples/pktgen/pktgen.conf-2-1
+++ b/samples/pktgen/pktgen.conf-2-1
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
diff --git a/samples/pktgen/pktgen.conf-2-2 b/samples/pktgen/pktgen.conf-2-2
index 474f200..aa32252 100755
--- a/samples/pktgen/pktgen.conf-2-2
+++ b/samples/pktgen/pktgen.conf-2-2
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
#modprobe pktgen
OpenPOWER on IntegriCloud