summaryrefslogtreecommitdiffstats
path: root/sample-scripts
diff options
context:
space:
mode:
authorDan Nelson <dnelson@users.sourceforge.net>2010-02-28 22:09:18 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 11:33:42 +0200
commit2d4e7685cd1a6d8e1eb1befa241b7595809d3b45 (patch)
tree19cb270ca64fd46d48985ef487a4c442c9ba10dd /sample-scripts
parent798497ae52d782248cc89fb8bf0e4fcdba98a0d3 (diff)
downloadopenvpn-2d4e7685cd1a6d8e1eb1befa241b7595809d3b45.tar.gz
openvpn-2d4e7685cd1a6d8e1eb1befa241b7595809d3b45.tar.xz
openvpn-2d4e7685cd1a6d8e1eb1befa241b7595809d3b45.zip
bash->bourne script cleanup
Many of the scripts in the openvpn source have their shell set to /bin/bash, but only two use bash features. The attached patch (against openvpn-2.1_rc9) sets the shell on the rest of the scripts to /bin/sh for better portability. The only scripts that actually require bash are contrib/pull-resolv-conf/client.{up,down} ; they use the ${!var} variable indirection feature. sf.net tracker: <https://sourceforge.net/tracker/?func=detail&aid=2040296&group_id=48978&atid=454721> Discussed on the IRC meeting March 4, 2010 in #openvpn-discussions. <http://thread.gmane.org/gmane.network.openvpn.devel/3242> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to 'sample-scripts')
-rwxr-xr-xsample-scripts/bridge-start2
-rwxr-xr-xsample-scripts/bridge-stop2
2 files changed, 2 insertions, 2 deletions
diff --git a/sample-scripts/bridge-start b/sample-scripts/bridge-start
index bfbbdc5..d20a260 100755
--- a/sample-scripts/bridge-start
+++ b/sample-scripts/bridge-start
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#################################
# Set up Ethernet bridge on Linux
diff --git a/sample-scripts/bridge-stop b/sample-scripts/bridge-stop
index d452893..8192779 100755
--- a/sample-scripts/bridge-stop
+++ b/sample-scripts/bridge-stop
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
####################################
# Tear Down Ethernet bridge on Linux