diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/1')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/1 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/1 b/abs/core/runit-scripts/runitscripts/1 new file mode 100755 index 0000000..6e4425d --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/1 @@ -0,0 +1,26 @@ +#!/bin/bash +/etc/rc.sysinit +. /etc/rc.conf +. /etc/rc.d/functions +hostname `cat /etc/hostname` +/sbin/sysctl -p 2>/dev/null >/dev/null +#yes it's needed the 2nd time +/usr/LH/bin/load-modules-mythvantage.sh >/dev/null +rm /etc/dhcpc/dhcpcd*.pid 2>/dev/null +rm -f /etc/sv/frontend/.runtime/* 2>/dev/null +rm -f /etc/runit/reboot 2>/dev/null +stat_busy "Starting network" +/etc/net/scripts/network.init start 2>/var/log/network.init.error >/var/log/network.init +stat_done +/usr/sbin/ethtool -s eth0 wol g 2>/dev/null +/usr/sbin/ethtool -s eth1 wol g 2>/dev/null +/usr/sbin/ethtool -s eth2 wol g 2>/dev/null +#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 + |