summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi/bestop.cgi
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-11-07 15:23:43 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-11-07 15:23:43 (GMT)
commit1468cf62b07b10ab3d87bca6f54b20dc8b816abd (patch)
tree88f2b9adca37f060436082b9f0156649cae73c4b /abs/core/supplemental-web/cgi/bestop.cgi
parent3dd79ac0d69d48f8f018121c5a7c1c5e7c56ba8c (diff)
downloadlinhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.zip
linhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.tar.gz
linhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.tar.bz2
supplemental-web: bestart.cgi, bestop.cgi, beclear.cgi: update OSD messages
Diffstat (limited to 'abs/core/supplemental-web/cgi/bestop.cgi')
-rw-r--r--abs/core/supplemental-web/cgi/bestop.cgi15
1 files changed, 8 insertions, 7 deletions
diff --git a/abs/core/supplemental-web/cgi/bestop.cgi b/abs/core/supplemental-web/cgi/bestop.cgi
index c9d7fad..2d31904 100644
--- a/abs/core/supplemental-web/cgi/bestop.cgi
+++ b/abs/core/supplemental-web/cgi/bestop.cgi
@@ -1,12 +1,13 @@
#!/bin/bash
-MESSAGE="Trying to stop `hostname` B.E."
-/usr/bin/func "*" call msg display "$MESSAGE" &
-
-sudo /sbin/sv stop mythbackend
-
-MESSAGE="`hostname` B.E. stopped"
+MESSAGE="Stopping `hostname` MythBackend..."
/usr/bin/func "*" call msg display "$MESSAGE" &
+svresult=`sudo /sbin/sv stop mythbackend`
+if [[ $svresult == *"down: "* ]]; then
+ MESSAGE="`hostname` MythBackend Stopped"
+else
+ MESSAGE="`hostname` MythBackend didn't Stop"
+fi
-
+/usr/bin/func "*" call msg display "$MESSAGE" &