Browse code

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>

Dan Nelson authored on 2010/03/01 06:09:18
Showing 17 changed files
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 #
4 4
 # Build a root certificate
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Build Diffie-Hellman parameters for the server side
4 4
 # of an SSL/TLS connection.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Make an intermediate CA certificate/private key pair using a locally generated
4 4
 # root certificate.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Make a certificate/private key pair using a locally generated
4 4
 # root certificate.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Similar to build-key, but protect the private key
4 4
 # with a password.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Make a certificate/private key pair using a locally generated
4 4
 # root certificate and convert it to a PKCS #12 file including the
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Make a certificate/private key pair using a locally generated
4 4
 # root certificate.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Build a certificate signing request and private key.  Use this
4 4
 # when your root certificate and key is not available locally.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Like build-req, but protect your private key
4 4
 # with a password.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Initialize the $KEY_DIR directory.
4 4
 # Note that this script does a
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Build a new PKI which is rooted on an intermediate certificate generated
4 4
 # by ./build-inter or ./pkitool --inter from a parent PKI.  The new PKI should
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # list revoked certificates
4 4
 
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # revoke a certificate, regenerate CRL,
4 4
 # and verify revocation
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # Sign a certificate signing request (a .csr file)
4 4
 # with a local root certificate and key.
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 # A Sample OpenVPN-aware firewall.
4 4
 
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 #################################
4 4
 # Set up Ethernet bridge on Linux
... ...
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/bin/sh
2 2
 
3 3
 ####################################
4 4
 # Tear Down Ethernet bridge on Linux