From 84cfad2c9cd6bba15d84e31ee927f339cd9b1ff6 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 9 Mar 2009 11:41:15 -0500 Subject: Give the end user the ability to run stuff from runit level 1. /etc/runit/1.local will not be overwritten on upgrades. --- abs/core-testing/runit-scripts/runitscripts/1 | 6 ++++++ abs/core-testing/runit-scripts/runitscripts/1.local | 3 +++ 2 files changed, 9 insertions(+) create mode 100755 abs/core-testing/runit-scripts/runitscripts/1.local diff --git a/abs/core-testing/runit-scripts/runitscripts/1 b/abs/core-testing/runit-scripts/runitscripts/1 index ac1ac49..804ed56 100755 --- a/abs/core-testing/runit-scripts/runitscripts/1 +++ b/abs/core-testing/runit-scripts/runitscripts/1 @@ -10,4 +10,10 @@ rm -f /etc/runit/reboot 2>/dev/null /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 + /etc/runit/1.local +fi diff --git a/abs/core-testing/runit-scripts/runitscripts/1.local b/abs/core-testing/runit-scripts/runitscripts/1.local new file mode 100755 index 0000000..f79a0c6 --- /dev/null +++ b/abs/core-testing/runit-scripts/runitscripts/1.local @@ -0,0 +1,3 @@ +#!/bin/bash +#local user startup script, run at the end of runit 1 + -- cgit v0.12