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
|
||||
|
||||
4
package/base-files/files/etc/rc.local
Normal file
4
package/base-files/files/etc/rc.local
Normal file
@@ -0,0 +1,4 @@
|
||||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user