summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/rcS
blob: d34cce6e9558e041387733d39c9fd58e82882165 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
ln -s /proc/self/fd/2 /dev/stderr
{
	grep '^#INIT ' /etc/init.d/* | \
	    sort -nk2 | \
	    while read line; do
		sh ${line%%:*} autostart
	    done
} | tee /dev/stderr |logger -p 6 -t ''