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
commitbdaeaafbef1d931b313cae1046ff5ccb5004e4b9 (patch)
tree3da3016df32074d6fd32952c058c93f22f1fa946 /package/base-files/files/etc/init.d/done
parent1a60ab36d9f9ad8a4f1b0db3ebd9c5c2ba758232 (diff)
downloadupstream-bdaeaafbef1d931b313cae1046ff5ccb5004e4b9.tar.gz
upstream-bdaeaafbef1d931b313cae1046ff5ccb5004e4b9.tar.bz2
upstream-bdaeaafbef1d931b313cae1046ff5ccb5004e4b9.zip
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
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