summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/3
blob: 15e4c5f7f3f221b46f22ef21a6b0452cd6db34a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

. /etc/rc.conf
. /etc/rc.d/functions

echo "======================================================================"
for i in `seq 3`
do
	echo " " > /dev/tty1
done
if [ -f /lib/splash/cache/daemon.pid ]
then
	pid=`cat /lib/splash/cache/daemon.pid`
	kill -9 $pid 2>/dev/null
fi
export PREVLEVEL=3

#user added stuff for level 3 of runit
if [ -e /etc/runit/3.local ]
then
    #exec the file
    stat_busy  /etc/runit/3.local
    /etc/runit/3.local
    stat_done
fi

/etc/rc.shutdown