init: check permissions on rc.d files
authorFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 02:36:14 +0000 (02:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 02:36:14 +0000 (02:36 +0000)
commitf6b4ef2dbf9cc40699db5f1aed569cbadd8af1e2
treed38d59de38f2e9280b70901183ebda1dce505dcd
parentaba0234bc4f7c1ba8f034f6aee37a7b9a42abd9e
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
package/base-files/files/etc/init.d/rcS