summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-26 22:04:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-26 22:04:55 (GMT)
commit51e0b638f0d58e4e0507425b8512809208fbbaf8 (patch)
treeca357ea72d7851fe28471ea344d1acfcd8d79721 /abs/core/LinHES-config
parent3a56a447fd5912114eab0e87cf550d7af8f2524a (diff)
downloadlinhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.zip
linhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.tar.gz
linhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.tar.bz2
LinHES-config: move backend_contrl to LinHES-config pkg. Doesn't belong here but it's sort of a one off.
This was done because backend_control is needed by systems that may not have supplemental-web installed. Like FE only systems. Removed backend-control from supplemental-web.
Diffstat (limited to 'abs/core/LinHES-config')
-rwxr-xr-xabs/core/LinHES-config/PKGBUILD8
-rw-r--r--abs/core/LinHES-config/backend_control.sh28
2 files changed, 33 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index 2300509..f39a180 100755
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -20,7 +20,7 @@ source=(mv_install.py 09_mythvantge_runit_grub
install_db_chroot.sh
restore_default_settings.sh
myth_settings_wrapper.sh
- xconfig.sh
+ xconfig.sh
timezip.py
soundconfig.sh
LinHES-release
@@ -49,7 +49,7 @@ source=(mv_install.py 09_mythvantge_runit_grub
mythvantage.cfg
config-sudo.rules
hdhr.conf blacklist_nouveau.conf blacklist_pcspkr.conf
- print_xorg_res.py )
+ print_xorg_res.py backend_control.sh )
backup=(etc/mythvantage.cfg)
install=config.install
@@ -99,6 +99,7 @@ build() {
install -m 0755 mv_vnc.py $MVDIR/bin/
install -m 0755 systemconfig.py $MVDIR/bin/
install -m 0755 print_xorg_res.py $MVDIR/bin/
+ install -m 0755 backend_control.sh $MVDIR/bin/
install -m 0755 mythvantage.cfg $startdir/pkg/etc/
#README file displayed on install
@@ -164,4 +165,5 @@ md5sums=('517b2065493bc07355e8e4f2963cb2fd'
'0fa6fffd87f350380d45f1f8a5b7babe'
'6ec39b010c0ed8901ea896c7e153d330'
'3866086e6af5e3528a66eff492f2f4dd'
- 'c9279fa095af624ee3d9bc75d3328360')
+ 'c9279fa095af624ee3d9bc75d3328360'
+ '928d183aa7b44049b797864c27a6b675')
diff --git a/abs/core/LinHES-config/backend_control.sh b/abs/core/LinHES-config/backend_control.sh
new file mode 100644
index 0000000..ab58bac
--- /dev/null
+++ b/abs/core/LinHES-config/backend_control.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#. /etc/systemconfig
+#echo $@ > /tmp/parms
+#start Slavebackend: fusion 192.168.1.120
+COMMAND=$1
+BETYPE=$2
+eval LAST=\$$#
+dbhost=`echo $LAST`
+
+
+MESSAGE=""
+case $COMMAND in
+ stop) MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestop.cgi 2>/dev/null`
+ ;;
+
+ start )
+ MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestart.cgi 2>/dev/null`
+ ;;
+
+ restart)
+ /usr/MythVantage/bin/backend_control.sh stop $dbhost
+ sleep 2
+ /usr/MythVantage/bin/backend_control.sh start $dbhost
+ ;;
+ clearcache)
+ MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null`
+esac
+