blob: 2a9fb0d66163b6c8ca0afc5b691505f6a48bbd35 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
clear
. /etc/rc.conf
. /etc/rc.d/functions
#continue plymouthd that was stopped in /etc/X11/Sessions/Linhes
cp -f /run/plymouth.pid /tmp/plymouthd
pidfile=/run/plymouth.pid
if [ -e "$pidfile" ]; then
plypid=`cat "$pidfile"`
if [ -n "$plypid" ]; then
kill -s CONT "$plypid"
plymouthd --mode=shutdown --pid-file=/run/plymouthd
plymouth --show-splash
kill "$plypid"
add_omit_pids `cat /run/plymouthd`
fi
fi
stat_busy "Waiting for services to stop..."
sv -w196 force-stop /service/*
sv exit /service/*
stat_done
for i in `seq 3`
do
echo " " > /dev/tty1
done
echo "======================================================================"
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
ethtool -s eth0 wol g 2>/dev/null
ethtool -s eth1 wol g 2>/dev/null
ethtool -s eth2 wol g 2>/dev/null
/etc/rc.shutdown
|