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
Code: Select all
ln -s /etc/init.d/interface /etc/rc.d/S94interface
Regards, Michael