简体   繁体   中英

Execute script at each boot - OpenWRT

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 eanable

sync

then reboot the device, it will be effect after reboot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM