blob: 05c37070514f89dabdafe923c63fdef65f9660fe (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin
/etc/rc.sysinit
. /etc/rc.conf
. /etc/rc.d/functions
sysctl -p 2>/dev/null >/dev/null
#make sure permissions are right for /etc/systemconfig
chown root:mythtv /etc/systemconfig
chmod 774 /etc/systemconfig
setfacl -m u:mythtv:rw- /etc/systemconfig 2>/dev/null >/dev/null
/usr/LH/bin/load-modules-mythvantage.sh >/dev/null
rm /etc/dhcpc/dhcpcd*.pid 2>/dev/null
rm -f /service/frontend/.runtime/* 2>/dev/null
rm -f /etc/runit/reboot 2>/dev/null
agetty -8 38400 tty10 linux &
stat_busy "Starting network"
mkdir -p /var/lock/subsys
/etc/net/scripts/network.init start 2>/var/log/network.init.error >/var/log/network.init
stat_done
ethtool -s eth0 wol g 2>/dev/null
ethtool -s eth1 wol g 2>/dev/null
ethtool -s eth2 wol g 2>/dev/null
#cleanup of log files
if [ -f /etc/cron.daily/log_care ]
then
stat_busy "Cleaning up old logs"
/etc/cron.daily/log_care 2>/dev/null >/dev/null &
stat_done
fi
#user added stuff for level 1 of runit
if [ -e /etc/runit/1.local ]
then
#exec the file
stat_busy /etc/runit/1.local
/etc/runit/1.local
stat_done
fi
#some stuff from rc.multi
run_hook multi_start
# Load sysctl config files
/usr/lib/systemd/systemd-sysctl
# Load additional binary formats
mountpoint -q /proc/sys/fs/binfmt_misc || mount /proc/sys/fs/binfmt_misc &>/dev/null || mount -t binfmt_misc binfmt /proc/sys/fs/binfmt_misc
/usr/lib/systemd/systemd-binfmt
# Stop bootlogd and clean up /var/log/boot
bootlogd_stop
sed -i -r -e 's/\^\[\[[0-9]?;?[0-9]?[0-9]?;?[0-9]?[0-9]?[ms]//g' \
-e 's/\^\[(\[1?[0-9]1|%)G//g' -e 's/\^\[\[0;1//g' \
-e 's/\^\[(\[?[0-9]{1,})G//g' /var/log/boot
rm -f /run/nologin
|