diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-28 02:36:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-28 02:36:14 +0000 |
commit | d36374c428c35478d0aba549325e93fef74d0898 (patch) | |
tree | 1b0d4391445a341f3679bd9748a95c1f28dbdda9 /package/base-files/files | |
parent | b443ee0fbbcd8e37622f68f1e6b9672a45108cdf (diff) | |
download | mtk-20170518-d36374c428c35478d0aba549325e93fef74d0898.zip mtk-20170518-d36374c428c35478d0aba549325e93fef74d0898.tar.gz mtk-20170518-d36374c428c35478d0aba549325e93fef74d0898.tar.bz2 |
init: check permissions on rc.d files
We try to unconditionally execute /etc/rc.d/* files, even if they're
not executable - an easy way of temproarily disabling a service. When
this happens, we get a permission denied error on boot.
This change only tries to run execulable startup scripts.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
SVN-Revision: 9607
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/rcS | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/rcS b/package/base-files/files/etc/init.d/rcS index 61c1d6d..b44f441 100755 --- a/package/base-files/files/etc/init.d/rcS +++ b/package/base-files/files/etc/init.d/rcS @@ -3,6 +3,6 @@ { for i in /etc/rc.d/$1*; do - $i $2 2>&1 + [ -x $i ] && $i $2 2>&1 done } | logger -s -p 6 -t '' & |