/etc/init.d/- will be automatically read and look for the boot function or START STOP. Starts at boot time.
boot() {
        echo boot
        
}
START-Position, then to start
STOP-Position then stop
START=10 
STOP=15
start() {        
        echo start
        
}                 
stop() {          
        echo stop
        
}
Edition:
In the /etc/rc.common directory files, whoes are compiled that will be launched at boot.
Enable function: /etc/init.d/your_script.sh enable
Click here for more information on downloading http://wiki.openwrt.org/doc/techref/process.boot
 source
share