1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 16:34:04 +02:00
openwrt-xburst/package/base-files/files/etc/init.d/rcS
nbd fadaa82e81 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
2007-11-28 02:36:14 +00:00

9 lines
134 B
Bash
Executable File

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
{
for i in /etc/rc.d/$1*; do
[ -x $i ] && $i $2 2>&1
done
} | logger -s -p 6 -t '' &