aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d/done
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-11 21:35:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-11 21:35:03 +0000
commit78c7c7e068d1a40a8ff54502ca5885232ca3839c (patch)
tree39cd1b7fbfccfe515803025e7b45ea87fbcec95a /package/base-files/files/etc/init.d/done
parente7b336cf2153d25bcde5c8ab082ab5224014f42f (diff)
downloadupstream-78c7c7e068d1a40a8ff54502ca5885232ca3839c.tar.gz
upstream-78c7c7e068d1a40a8ff54502ca5885232ca3839c.tar.bz2
upstream-78c7c7e068d1a40a8ff54502ca5885232ca3839c.zip
[package] base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17571 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d/done')
-rwxr-xr-xpackage/base-files/files/etc/init.d/done5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done
index 0640b61938..8278669120 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