diff options
| author | James Meyer <james.meyer@operamail.com> | 2009-08-21 00:51:35 (GMT) |
|---|---|---|
| committer | James Meyer <james.meyer@operamail.com> | 2009-08-21 00:51:35 (GMT) |
| commit | 348ed005f1ba2e77ded656fe2209a58197571b2d (patch) | |
| tree | 9ea9354c86f0510526a72ba831a9a5656534010d /abs/mv-core/runit-scripts-mv/runitscripts/services/frontend | |
| parent | 9a60dd7921db1ab7a168da96329bad3e9c24725e (diff) | |
| download | linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.zip linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.gz linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.bz2 | |
mv-core: bring more stuff up to date
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/frontend')
| -rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish | 13 | ||||
| -rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run | 16 |
2 files changed, 17 insertions, 12 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish b/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish index 3bbd374..4836b44 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish @@ -1,12 +1,15 @@ #!/bin/bash exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions + grep -q noautologin /proc/cmdline STATUS=$? - if [ $STATUS = 0 ] - then - chvt 2 +if [ $STATUS = 0 ] +then + chvt 2 else - chvt 1 touch /etc/sv/frontend/.runtime/`date +%s` sleep 0.5 @@ -19,6 +22,6 @@ if [ $numfiles -gt 2 ] then sv stop frontend rm -f /etc/sv/frontend/.runtime/* - echo "Frontend is not able to start, disabling it" + printhl " Frontend is not able to start, disabling it." fi fi diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run index 35d97d0..0c75b96 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run @@ -1,15 +1,17 @@ #!/bin/sh +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions exec 2>&1 sv start dbus sv start hal - grep -q noautologin /proc/cmdline - STATUS=$? - if [ $STATUS = 0 ] - then +grep -q noautologin /proc/cmdline +STATUS=$? +if [ $STATUS = 0 ] +then sv down frontend exit 0 - fi - -#exec /usr/bin/openvt -fec 7 -- /bin/su - mythtv -l -c STB-start +fi +stat_runit "Starting MythVantage frontend" exec /bin/su - mythtv -l -c STB-start |
