summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/rcS
blob: e27bc9eb58d51bc473f3239db4fde4b594cabfcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# disable kernel messages
if [ -f /proc/sys/kernel/printk ];then
	echo 0 > /proc/sys/kernel/printk
fi
ln -s /proc/self/fd/2 /dev/stderr
echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
{
	grep '^#INIT ' /etc/init.d/* | \
	    sort -nk2 | \
	    while read line; do
		sh ${line%%:*} autostart
	    done
} |tee /dev/stderr |logger -p 6 -t ''