diff options
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/done | 5 | ||||
-rw-r--r-- | package/base-files/files/etc/rc.local | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done index 0640b61..8278669 100755 --- a/package/base-files/files/etc/init.d/done +++ b/package/base-files/files/etc/init.d/done @@ -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 diff --git a/package/base-files/files/etc/rc.local b/package/base-files/files/etc/rc.local new file mode 100644 index 0000000..5639477 --- /dev/null +++ b/package/base-files/files/etc/rc.local @@ -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 |