aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-28 02:36:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-28 02:36:14 +0000
commit1c45a560a22a6a141504fe1fa5de9f9107831b0d (patch)
treed38d59de38f2e9280b70901183ebda1dce505dcd /package
parentb4163899b11fcded2dbb943eb7776cec242c8218 (diff)
downloadmaster-187ad058-1c45a560a22a6a141504fe1fa5de9f9107831b0d.tar.gz
master-187ad058-1c45a560a22a6a141504fe1fa5de9f9107831b0d.tar.bz2
master-187ad058-1c45a560a22a6a141504fe1fa5de9f9107831b0d.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9607 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/init.d/rcS2
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 61c1d6dab7..b44f441c14 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 '' &