init: check permissions on rc.d files
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 02:36:14 +0000 (02:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 02:36:14 +0000 (02:36 +0000)
commitfadaa82e81840ea33cc8c228f743636fbee1b345
treed38d59de38f2e9280b70901183ebda1dce505dcd
parent0d9004633dc1ff1fcd9d817bc217263dc10dab5c
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
package/base-files/files/etc/init.d/rcS