forked from Ivasoft/openwrt
base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
SVN-Revision: 17571
This commit is contained in:
@@ -9,6 +9,11 @@ boot() {
|
||||
lock -u /tmp/.switch2jffs
|
||||
}
|
||||
|
||||
# process user commands
|
||||
[ -f /etc/rc.local ] && {
|
||||
sh /etc/rc.local
|
||||
}
|
||||
|
||||
# set leds to normal state
|
||||
. /etc/diag.sh
|
||||
set_state done
|
||||
|
||||
Reference in New Issue
Block a user