diff options
author | Cecil <knoppmyth@gmail.com> | 2011-12-09 17:18:27 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-12-09 17:18:27 (GMT) |
commit | c034db2c880091379f7e58c2938a9689d78fbaa9 (patch) | |
tree | 8a074205a2f3bf6ee7fb5945c53e1a1618d41973 /abs/core/runit-scripts/runitscripts/services/powermate | |
parent | 73b42144585c603fc64e7b1d6a126ceb7c486870 (diff) | |
parent | b0c5755ade92ee5b76a6d56248e64254876bc931 (diff) | |
download | linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.zip linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.gz linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/powermate')
-rw-r--r-- | abs/core/runit-scripts/runitscripts/services/powermate/finish | 21 | ||||
-rw-r--r-- | abs/core/runit-scripts/runitscripts/services/powermate/run | 7 |
2 files changed, 28 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/powermate/finish b/abs/core/runit-scripts/runitscripts/services/powermate/finish new file mode 100644 index 0000000..b1d27fd --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/powermate/finish @@ -0,0 +1,21 @@ +#!/bin/bash +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +. /usr/MythVantage/bin/install_functions.sh + +[ -e /etc/sv/powermate/.runtime ] || mkdir -p /etc/sv/powermate/.runtime +touch /etc/sv/powermate/.runtime/`date +%s` +numfiles=`/usr/bin/file_time_offset.py -s4 -d/etc/sv/powermate/.runtime ` +if [ $numfiles -gt 3 ] +then + rm -f /etc/sv/powermate/.runtime/* 2>/dev/null + sv stop powermate + printhl " powermate is not able to start, disabling it" +fi + + + + + + in_kernel_support "enable" diff --git a/abs/core/runit-scripts/runitscripts/services/powermate/run b/abs/core/runit-scripts/runitscripts/services/powermate/run new file mode 100644 index 0000000..f33a769 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/powermate/run @@ -0,0 +1,7 @@ +#!/bin/sh +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "powermate support" + +DISPLAY=127.0.0.1:0 /usr/LH/bin/powermate-myth.py |