Error in /etc/rc2.d/S95dial
Bug #109969 reported by
Vincenzo Consales
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
One of the scripts located in rc2.d (S95dial) at the startup give me these 3 lines of errors:
line 5: while[[0 -lt 40]]: command not found
line 6: syntax error near unexpected token `do'
line 6: `do'
this is the file:
#!/bin/bash
modprobe ppp_generic
modprobe pppoatm
count=0
while[[$((count++)) -lt 40]]
do
sync=$(dmesg|grep 'ADSL line is up')
if[!-z "$sync"]
then
pppd call speedtch
exit 0
fi
sleep 1
done
echo "Firmware non caricato"
To post a comment you must log in.
I use Ubuntu Feisty, upgraded from edgy and this script seems to activate ADSL connection for my Speedtouch modem, infact the command i use to connect is pppd call speedtch