syntax error in /etc/init.d/boot_xconf
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 "." " ") ; 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
done
echo )
LENGTH=8
while [ $LENGTH -gt 0 ] ; do
echo $HEXIP
let LENGTH=($LENGTH - 1) *( -- line 43 )*
HEXIP=$(echo $HEXIP | cut -c -$LENGTH)
done
}
If I remove the () in line 43 the syntax error does not show up but does it
still work as intended?
I would appreciate any hint. Thank you
--
Eike Lantzsch ZP6CGE
Casilla de Correo 1519
Asuncion / Paraguay
Tel.: 595-21-578698 FAX: 595-21-578690
Reply to: