Thanks John,

I actually got it going. It was a combination of things.

Thanks

D

#!/bin/sh
#working script. 
echo "deleting route" >> /var/log/messages
sleep 30
route del default gw 192.168.0.1 eth0
echo "setting nameservers" >> /var/log/messages
#now use o2 nameserver
echo "nameserver 62.40.32.33" > /etc/resolv.conf
echo "nameserver 62.40.32.34" >> /etc/resolv.conf
echo "starting setbits"
echo "starting setbits" >> /var/log/messages

setbits -p b -b 7 -s 1
echo "after first setbits" >> /var/log/messages
sleep 10
echo "after sleep" >> /var/log/messages
setbits -p b -b 7 -s 0
sleep 10
echo "after second setbits" >> /var/log/messages
echo "after second setbits"
/etc/ppp/ppp-start
echo "after ppp start" >> /var/log/messages
sleep 30
wget http://64.246.2.199

wget http://www.lukulu.com/test.jpg
echo "after lukulu wget" >> /var/log/messages
wget http://www.google.com
echo "after wget" >> /var/log/messages
ping www.google.com >> /var/log/messages



--- In [email protected], [EMAIL PROTECTED] wrote:
>
> the boottime scripts do not have a shell environment set
> 
> do not call setbits but
> 
> /path/to/setbits
> 
> you can find out the path where setbits is lying by calling
> 
> which setbits
> 
> 
> 
> 
> 
> 
> Quoting dwrenne <[EMAIL PROTECTED]>:
> 
> > Hi,
> >
> > I have an 8*16 with the MMC board. I can get it to connect over GPRS
> > but I am having trouble testing it as I cannot be sure that a wget,
> > for instance, is actually  using the GPRS rather than an attached
> > ethernet line (for ssh). I suppose I should use the serial link, but
> > for now I was trying to get teh ppp to start on boottime.
> >
> > I added the following script to the /etc/init.d/boottime/ directory
> > and changed it to executable (chmod +x) . Nothing happens with the MMC
> > LED's.
> >
> >
> > #!/bin/sh
> >
> >
> > echo "starting" >> log.txt
> > setbits -p b -b 7 -s 1
> > echo "after first setbits" >> log.txt
> > sleep 2
> > echo "after sleep" >> log.txt
> > setbits -p b -b 7 -s 0
> > sleep 10
> > echo "after second setbits" >> log.txt
> > /etc/ppp/ppp-start
> > echo "after ppp start" >> log.txt
> > sleep 30
> > wget http://www.google.com
> > echo "after wget" >> log.txt
> >
> > The script runs fine when I log in as root and run it from ssh. Is it
> > a permissions issue?
> >
> > Thanks
> >
> > Diarmuid
> >
> >
>


Reply via email to