2005-01-16 11:43:02 +00:00
|
|
|
#!/bin/sh
|
2006-06-27 00:36:13 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
|
2009-03-18 13:05:18 +00:00
|
|
|
LOGGER="cat"
|
2009-04-21 12:02:34 +00:00
|
|
|
[ -x /usr/bin/logger ] && LOGGER="logger -s -p 6 -t sysinit"
|
2009-03-18 13:05:18 +00:00
|
|
|
|
2007-05-10 10:07:38 +00:00
|
|
|
{
|
|
|
|
for i in /etc/rc.d/$1*; do
|
2007-11-28 02:36:14 +00:00
|
|
|
[ -x $i ] && $i $2 2>&1
|
2006-10-04 20:05:48 +00:00
|
|
|
done
|
2009-03-18 13:05:18 +00:00
|
|
|
} | $LOGGER &
|