mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
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
This commit is contained in:
parent
b443ee0fbb
commit
d36374c428
@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
for i in /etc/rc.d/$1*; do
|
for i in /etc/rc.d/$1*; do
|
||||||
$i $2 2>&1
|
[ -x $i ] && $i $2 2>&1
|
||||||
done
|
done
|
||||||
} | logger -s -p 6 -t '' &
|
} | logger -s -p 6 -t '' &
|
||||||
|
Loading…
Reference in New Issue
Block a user