simple boot script would not start interface.sh

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
michael2010
Posts: 9
Joined: Wed Mar 24, 2010 5:28 pm

simple boot script would not start interface.sh

Post by michael2010 »

Hi, any idea why simple boot script might not start.

Code: Select all

First, we need to create a simple boot script.  Create the file /etc/init.d/AVR with the following contents:

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org

START=99
start() {
sleep 5    # make sure boot process is done, no more console messages
/root/interface.sh
}

To launch the script at boot, create a symbolic link as follows:

root@OpenWrt:~# ln -s /etc/init.d/AVR /etc/rc.d/S99AVR
When I create a link directly to the interface say

Code: Select all

 ln -s /etc/init.d/interface /etc/rc.d/S94interface
it works. Any tip why the simple boot script would not work?
Regards, Michael
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: simple boot script would not start interface.sh

Post by mightyohm »

Is the script located at /root/interface.sh?

Is the executable bit set?
michael2010
Posts: 9
Joined: Wed Mar 24, 2010 5:28 pm

Re: simple boot script would not start interface.sh

Post by michael2010 »

Jeff, you are right. The

Code: Select all

interface.sh
script is in

Code: Select all

/root
. It is executable and I can start it manually just fine. It also works like I said if I create a link to it. Just when I use your boot script it won't start. Michael
Post Reply