James, Folks,

I noticed a minor problem as my RH62 box started up:

$Starting openvpn: /etc/rc.d/init.d/openvpn: [: ==: binary operator expected

That's two distinct, common errors:
 - $localization stuff that doesn't work on bash1
 - an == in a [] in the script.

These are both directly related to the fact that the standard bash on RH62 is bash1. We can fix compatibility in a few ways: - ignore the odd $localization $artefact and make the one change to the init script (as if we did perl -pi -e 's:==:=:' to is) in one place.

OR
 - this patch:

--- /etc/rc.d/init.d/openvpn~   Sun Apr 27 03:51:51 2003
+++ /etc/rc.d/init.d/openvpn    Thu May  1 12:07:50 2003
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash2
 #
 # openvpn       This shell script takes care of starting and stopping
 #               openvpn.

Super-trivial, but I'm wondering about any possible complications with either approach. As it is now, we do have a valid bug in that, on RH62, openVPN will not start.

(I also noticed I can start it multiple times. This may be another problem - service openvpn start ; service openvpn start ; service openvpn start ; service openvpn start - because it should normally generate a minor gripe message)

Anyway, whatever the consensus, I can submit a patch.

 - bish

--
        "Every well-bred petty crook knows -- the small concealable
        weapons always go to the far left of the place setting."
                -- Inara (Morena Baccarin), "Firefly"
                   (unaired - into production AFTER fox crushed it)


Reply via email to