summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/rcS
blob: ef3a52a31e9fdb11d599de953ebfb8b7f44f6741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# disable kernel messages
if [ -f /proc/sys/kernel/printk ];then
	echo 0 > /proc/sys/kernel/printk
fi
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
} | logger -s -p 6 -t ''