summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-09-04 20:22:34 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-09-04 20:22:34 (GMT)
commitc23fd707e1cd4dd901a0ec5532aa0cbcecbd023e (patch)
treeef51faaa412a8f7b38d199c084bc5fb4db05739a /abs/core/LinHES-config
parent10dd549ffabc3120c4d0de6ff094bd7223aee613 (diff)
downloadlinhes_pkgbuild-c23fd707e1cd4dd901a0ec5532aa0cbcecbd023e.zip
linhes_pkgbuild-c23fd707e1cd4dd901a0ec5532aa0cbcecbd023e.tar.gz
linhes_pkgbuild-c23fd707e1cd4dd901a0ec5532aa0cbcecbd023e.tar.bz2
LinHES-config: backend_control.sh if the be controls could not be contancted on 1337 then tell the user about it.
Diffstat (limited to 'abs/core/LinHES-config')
-rwxr-xr-xabs/core/LinHES-config/PKGBUILD6
-rwxr-xr-x[-rw-r--r--]abs/core/LinHES-config/backend_control.sh28
2 files changed, 25 insertions, 9 deletions
diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index a5474c8..8073599 100755
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=2.3
-pkgrel=116
+pkgrel=121
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
pkgdesc="Install and configure your system"
depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
@@ -125,7 +125,7 @@ build() {
install -o root -g root -D -m 0755 blacklist_pcspkr.conf $startdir/pkg/etc/modprobe.d/blacklist_pcspkr.conf
install -o root -g root -D -m 0755 blacklist_nouveau.conf $startdir/pkg/etc/modprobe.d/blacklist_nouveau.conf
}
-md5sums=('d3bdf114a738d46b5a4d309b65382bcd'
+md5sums=('2dab193216dae3fe965c9ab7f93f822a'
'f33e1a6f7985091b8d47cbaf7433f90f'
'88d0d57a5d2acaf9c0456c38218e513f'
'2596460462cf6c889cf8f95485537b20'
@@ -169,4 +169,4 @@ md5sums=('d3bdf114a738d46b5a4d309b65382bcd'
'6ec39b010c0ed8901ea896c7e153d330'
'3866086e6af5e3528a66eff492f2f4dd'
'c9279fa095af624ee3d9bc75d3328360'
- '928d183aa7b44049b797864c27a6b675')
+ '66a5e2dd3e51d11a93a17f7c01a8708f')
diff --git a/abs/core/LinHES-config/backend_control.sh b/abs/core/LinHES-config/backend_control.sh
index ab58bac..24c6551 100644..100755
--- a/abs/core/LinHES-config/backend_control.sh
+++ b/abs/core/LinHES-config/backend_control.sh
@@ -11,18 +11,34 @@ dbhost=`echo $LAST`
MESSAGE=""
case $COMMAND in
stop) MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestop.cgi 2>/dev/null`
+ rc=$?
+ if [ $rc != 0 ]
+ then
+ lh_message.sh "Could not stop the backend."
+ fi
;;
-
- start )
+
+ start )
MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestart.cgi 2>/dev/null`
+ rc=$?
+ if [ $rc != 0 ]
+ then
+ lh_message.sh "Could not start the backend"
+ fi
;;
-
+
restart)
/usr/MythVantage/bin/backend_control.sh stop $dbhost
sleep 2
- /usr/MythVantage/bin/backend_control.sh start $dbhost
+ /usr/MythVantage/bin/backend_control.sh start $dbhost
+
;;
- clearcache)
- MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null`
+ clearcache)
+ MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null`
+ rc=$?
+ if [ $rc != 0 ]
+ then
+ lh_message.sh "Could not clear the cache"
+ fi
esac