lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1424745179.4443.8.camel@xylophone.i.decadent.org.uk>
Date:	Tue, 24 Feb 2015 02:32:59 +0000
From:	Ben Hutchings <ben.hutchings@...ethink.co.uk>
To:	netdev@...r.kernel.org
Cc:	linux-kernel@...ts.codethink.co.uk
Subject: [PATCH net-next 07/10] 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@...ethink.co.uk>
---
 samples/pktgen/pktgen.conf-1-1          |    2 +-
 samples/pktgen/pktgen.conf-1-1-flows    |    2 +-
 samples/pktgen/pktgen.conf-1-1-ip6      |    2 +-
 samples/pktgen/pktgen.conf-1-1-ip6-rdos |    2 +-
 samples/pktgen/pktgen.conf-1-1-rdos     |    2 +-
 samples/pktgen/pktgen.conf-1-2          |    2 +-
 samples/pktgen/pktgen.conf-2-1          |    2 +-
 samples/pktgen/pktgen.conf-2-2          |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/samples/pktgen/pktgen.conf-1-1 b/samples/pktgen/pktgen.conf-1-1
index 10c8f15ba0ab..4679803f6d9e 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 033cac87a215..34703639593f 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 3a8a5dc5fa17..ab4323df3c05 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 6420a2a37158..2d3298c53079 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 adce265d0be4..6a8bd27729ff 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 613e0ba6e963..98aaa87486d9 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 cd4c984098ca..8b6311e8cb96 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 4037dedbfa01..e59e0d2ee8b7 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
 
-- 
1.7.10.4




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ