I want to start a shell-script every startup of the openWRT Rooter. But moving it in the etc/init.d
directory seems not to work. Want to delete one line in a specific file at every startup. But it does not work.
#!/bin/sh /etc/rc.common
START=80
STOP=85
start(){
grep -vwE "password" /etc/config/glconfig > /etc/config/glconfig
}
What shall i do to execute this (and other) scripts at startup?
Thx for help
In openwrt if you want to run a script on boot you should do:
/etc/init.d/cust_script enable
then reboot the device, it will be effect after reboot.