Message-ID: <3EB1726A.4000700@...7...> From: bishop MIME-Version: 1.0 Subject: [Openvpn-devel] Openvpn for RH62 - eek! Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Date: Thu May 1 12:17:26 2003 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit To: OpenVPN devel 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)