2
0
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:
Jo-Philipp Wich
2009-09-11 21:35:03 +00:00
parent 1a60ab36d9
commit bdaeaafbef
3 changed files with 10 additions and 1 deletions

View File

@@ -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