summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/runitscripts/services/frontend
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-08-22 00:27:53 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-08-22 00:27:53 (GMT)
commitdb17e125c87e8056e2d0cdc5f1985ab62e713c84 (patch)
tree0e2c84550d6ffdfd33cc84c12c396db9ce3c987b /abs/mv-core/runit-scripts-mv/runitscripts/services/frontend
parente067093b13fb71f9d928ccf7a1b3ce6dd0124795 (diff)
parentd630a6ae3ada088453209270791ae281e2d5e393 (diff)
downloadlinhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.zip
linhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.tar.gz
linhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.tar.bz2
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/frontend')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/services/frontend/finish13
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/services/frontend/run16
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