Hi,

On Thu, Jan 17, 2008 at 10:46:04AM +0100, Yves Schumann wrote:
> Hi Andrew
> 
> [EMAIL PROTECTED] wrote on 17.01.2008 09:48:55:
> 
> > >> But this problem is still there and actually I have no idea where
> > >> to look
> > >> for this!? Any ideas or hints?
> > >
> > > On changeset bef30e5a2a31 [1] the usage of the var was changed like
> > > this:
> > >
> > > --- a/resources/OCF/IPaddr2 Fri Jul 06 13:14:17 2007 +0200
> > > +++ b/resources/OCF/IPaddr2 Fri Jul 06 13:15:27 2007 +0200
> > > @@ -268,7 +268,7 @@ ip_init() {
> > >    fi
> > >    IP_INC_GLOBAL=${OCF_RESKEY_CRM_meta_clone_max:-1}
> > > -   IP_INC_NO=$((OCF_RESKEY_CRM_meta_clone+1))
> > > +   IP_INC_NO=`expr $OCF_RESKEY_CRM_meta_clone + 1`
> > >    IP_CIP_HASH="${OCF_RESKEY_clusterip_hash}"
> > >    if [ $LVS_SUPPORT -gt 0 ] && [ $IP_INC_GLOBAL -gt 1 ]; then
> > > ...
> > >
> > > For testing I've switched this line back to the old version. Why was
> > > this
> > > changed to the usage of expr?
> >
> > the initial syntax is bash-specific
> 
> Ah ok, thx for this info. Here is a little patch for this:
> 
> ---------------->8 snip 8<----------------------
> 
> # diff IPaddr2-old IPaddr2-new
> 271c271
> <       IP_INC_NO=`expr $OCF_RESKEY_CRM_meta_clone + 1`
> ---
> >       IP_INC_NO=`expr ${OCF_RESKEY_CRM_meta_clone:=0} + 1`
> 
> ---------------->8 snap 8<----------------------
> 
> What do you think about that?

Looks good. Just applied it to the dev tree. Thanks.

Dejan

> 
> 
> Yours
> 
> Yves Schumann
> Softwareentwicklungsingenieur
> Security Solutions Division
> ______________________________
> Ascom (Schweiz) AG
> Eichtal, CH-8634 Hombrechtikon
> Phone: +41 55 254 66 84
> [EMAIL PROTECTED]
> http://www.ascom.com
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to