Re: syntax error in /etc/init.d/boot_xconf

2006-01-22 Thread Michelle Konzack
Am 2006-01-08 15:18:21, schrieb Eike Lantzsch: > iptohex () { > IP=$1 > > HEXIP=$(for ALL in $(echo "$IP" | tr "." " ") ; do > if [ $ALL -lt 16 ] ; then > echo -n "0$(echo -e "obase=16\n$ALL" | bc)" > else > echo -n "$(echo -e "obase=16\n$ALL" | bc)" > fi

Re: syntax error in /etc/init.d/boot_xconf

2006-01-09 Thread Simo Kauppi
On Sun, Jan 08, 2006 at 03:18:21PM -0300, Eike Lantzsch wrote: > Maybe I'm too daft to see it > > LENGTH=8 > while [ $LENGTH -gt 0 ] ; do > echo $HEXIP > let LENGTH=($LENGTH - 1)*( -- line 43 )* > HEXIP=$(echo $HEXIP | cut -c -$LENGTH) > done

syntax error in /etc/init.d/boot_xconf

2006-01-08 Thread Eike Lantzsch
Maybe I'm too daft to see it Sun Jan 8 11:44:38 2006: /etc/rc2.d/S20boot_xconf: line 43: syntax error near unexpected token `(' Sun Jan 8 11:44:38 2006: /etc/rc2.d/S20boot_xconf: line 43: ` let LENGTH=($LENGTH - 1)' iptohex () { IP=$1 HEXIP=$(for ALL in $(echo "$IP" | tr "." " "