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