]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
bash->bourne script cleanup
authorDan Nelson <dnelson@users.sourceforge.net>
Sun, 28 Feb 2010 21:09:18 +0000 (22:09 +0100)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Oct 2010 09:33:42 +0000 (11:33 +0200)
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>
17 files changed:
easy-rsa/2.0/build-ca
easy-rsa/2.0/build-dh
easy-rsa/2.0/build-inter
easy-rsa/2.0/build-key
easy-rsa/2.0/build-key-pass
easy-rsa/2.0/build-key-pkcs12
easy-rsa/2.0/build-key-server
easy-rsa/2.0/build-req
easy-rsa/2.0/build-req-pass
easy-rsa/2.0/clean-all
easy-rsa/2.0/inherit-inter
easy-rsa/2.0/list-crl
easy-rsa/2.0/revoke-full
easy-rsa/2.0/sign-req
sample-config-files/firewall.sh
sample-scripts/bridge-start
sample-scripts/bridge-stop

index fb1e2ca798a6762cd32885bffe85f5a3930c1c0c..bce29a6a3a10bef9ecffdde868e4e3d1c6553365 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #
 # Build a root certificate
index f019222e1bc769025689c6b04ef4ebf6a17507cb..4beb127fd8459f0a82ccb890f8f2112dd2b46123 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Build Diffie-Hellman parameters for the server side
 # of an SSL/TLS connection.
index f831d6f7b9cd1d99c33a6095b5913aea1162bb36..87bf98d4da42e78f260e0e5cf15c6c9484f0b48a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Make an intermediate CA certificate/private key pair using a locally generated
 # root certificate.
index 6196308331729dedce39f05815bac187a8dbfa48..6c0fed82a491821c97a3db57ac48e718ce266c50 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Make a certificate/private key pair using a locally generated
 # root certificate.
index 35543e0b9e49db9d9ffb450c242ac9ddbb34cf06..8ef830774ad94c475edb44529978741b4ca324af 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Similar to build-key, but protect the private key
 # with a password.
index 5ef064ff4f8b9612fcee3595ec208e7cf255639d..ba90e6adf23dca219bdb5049002586b43d9370d9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Make a certificate/private key pair using a locally generated
 # root certificate and convert it to a PKCS #12 file including the
index 55026755466113b7a1564e73a7a308ba56b87b2d..fee01948859a22ef8bb0b7dd047050dee92fcc76 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Make a certificate/private key pair using a locally generated
 # root certificate.
index 26587d168b4a95dc3015daa7010ed21c3a5d6725..559d512e8c50575be193070eaa593fa4d07efa31 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Build a certificate signing request and private key.  Use this
 # when your root certificate and key is not available locally.
index 6e6c8637b71a262ec26ea9dabc8ebcbaec4ee86c..b73ee1b5ed2832764330bb8fa72dbdc37afb93bd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Like build-req, but protect your private key
 # with a password.
index 0576db5fab74149d8655992a773763faa03454a9..cc6e3b2f532c66afbcf59f0d8cc5567662085f60 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Initialize the $KEY_DIR directory.
 # Note that this script does a
index 2101951630c8610afe25a8c6cf448e0a72f733b9..aaa51688cc3a806cf93d5b3f42cc8ebd1fc1d893 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Build a new PKI which is rooted on an intermediate certificate generated
 # by ./build-inter or ./pkitool --inter from a parent PKI.  The new PKI should
index afc0cd61609d76664200e86f0de239b3db204692..d1d8a69ce0ef14c76f3c12ef2bf2e61a2dc837e9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # list revoked certificates
 
index efc94e86943fc7a55c9443d177988e378a616bd0..4169c4ca5a41af9ecd300292b29f2c37cde815ac 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # revoke a certificate, regenerate CRL,
 # and verify revocation
index 38655d359a9fef64bf9d93c51622cb0c2af53249..6cae7b4e6d23f3edde527b1ec34c10898bac0873 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Sign a certificate signing request (a .csr file)
 # with a local root certificate and key.
index f0db8063ca78f662f16ab9be409a811059fc5513..19d75ee92477f54234e4ed779a972f2581c3fd3b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # A Sample OpenVPN-aware firewall.
 
index bfbbdc58446dc7765ce41e256b8e15f403d1caaa..d20a260322248b2f173e94165510b57721ce380e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #################################
 # Set up Ethernet bridge on Linux
index d45289372a439a792ff9edf554c15ccf5cdd21f2..81927794c7e44354d5fa84dd425e5e456e9acf94 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 ####################################
 # Tear Down Ethernet bridge on Linux