summaryrefslogtreecommitdiffstats
path: root/init.d/rcL
blob: 7c6b3f75335ead294f18efc7de5a4767b40d02a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/busybox sh

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

for i in `seq 0 9` ; do
	# first stopp all the K?? scripts in this level
	for j in /etc/rcL.d/K$i[0-9]* ; do
		[ -f $j ] && $j stop
	done
	# start all S?? scripts in this level
	for j in /etc/rcL.d/S$i[0-9]* ; do
		[ -f $j ] && $j start
	done
done
exit 0