From: Richard van den Berg via Openvpn-devel Date: Fri, 21 Dec 2018 06:43:28 +0000 (+0100) Subject: Fix error message when using RHEL init script X-Git-Tag: v2.4.7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d18fa4aab1b73074d71a4d8cbf894c73c689d2ec;p=thirdparty%2Fopenvpn.git Fix error message when using RHEL init script In RHEL 7 /etc/sysconfig/network is no longer used (still there but empty). This results in the following error when openvpn starts: Dec 20 09:01:25 localhost openvpn: /etc/rc.d/init.d/openvpn: line 94: [: =: unary operator expected Acked-by: Gert Doering Message-Id: URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18057.html Signed-off-by: Gert Doering (cherry picked from commit 7e711035f12a25199c3a04193ee4e22e43930f6a) --- diff --git a/distro/rpm/openvpn.init.d.rhel b/distro/rpm/openvpn.init.d.rhel index cdf3e9deb..bfde2216b 100755 --- a/distro/rpm/openvpn.init.d.rhel +++ b/distro/rpm/openvpn.init.d.rhel @@ -91,7 +91,7 @@ work=/etc/openvpn . /etc/sysconfig/network # Check that networking is up. -if [ ${NETWORKING} = "no" ] +if [ "${NETWORKING}" = "no" ] then echo "Networking is down" exit 0