summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-09 16:41:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-09 16:41:15 (GMT)
commit84cfad2c9cd6bba15d84e31ee927f339cd9b1ff6 (patch)
tree3767a3709550625882391aac8d9f558f0bbe8cf9
parent1c93373465c75d2d115cc9da72cfa5ff21f3867e (diff)
downloadlinhes_pkgbuild-84cfad2c9cd6bba15d84e31ee927f339cd9b1ff6.zip
linhes_pkgbuild-84cfad2c9cd6bba15d84e31ee927f339cd9b1ff6.tar.gz
linhes_pkgbuild-84cfad2c9cd6bba15d84e31ee927f339cd9b1ff6.tar.bz2
Give the end user the ability to run stuff from runit level 1.
/etc/runit/1.local will not be overwritten on upgrades.
-rwxr-xr-xabs/core-testing/runit-scripts/runitscripts/16
-rwxr-xr-xabs/core-testing/runit-scripts/runitscripts/1.local3
2 files changed, 9 insertions, 0 deletions
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
+