summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/myth_settings_wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/myth_settings_wrapper.sh')
-rw-r--r--abs/core/LinHES-config/myth_settings_wrapper.sh30
1 files changed, 26 insertions, 4 deletions
diff --git a/abs/core/LinHES-config/myth_settings_wrapper.sh b/abs/core/LinHES-config/myth_settings_wrapper.sh
index 33f401f..90d41de 100644
--- a/abs/core/LinHES-config/myth_settings_wrapper.sh
+++ b/abs/core/LinHES-config/myth_settings_wrapper.sh
@@ -1,8 +1,9 @@
#!/bin/bash
+MYTH_RUN_STATUS="1"
. /etc/profile
. /etc/systemconfig
shopt -s -o nounset
-echo $@ >> /tmp/restore.out
+echo $@ >> /tmp/wrapper.out
#TEMPLATES="/usr/share/templates/settings"
TEMPLATES="$TEMPLATES/settings"
TABLES="settings keybindings jumppoints"
@@ -103,6 +104,9 @@ do
echo "template is hostsettings"
Thistemplate=syssettings
loadhost=true
+ elif [ x$Thistemplate = x"custom" ]
+ then
+ echo "template is custom"
else
echo "invalid template name"
exit 1
@@ -171,8 +175,15 @@ case $OPERATION in
;;
load)
- #this loads the distro default file, it's not active by any hosts
- mythutil --import-settings --infile $TEMPLATES/$Thistemplate/distro_default.xml
+ if [ x$Thistemplate = "xcustom" ]
+ then
+ define_xml $5 $hostname settings $6
+ load_xml $gen_xml > /tmp/load_xml_custom.log
+
+ else
+ #this loads the distro default file, it's not active by any hosts
+ mythutil --import-settings --infile $TEMPLATES/$Thistemplate/distro_default.xml
+ fi
;;
@@ -181,7 +192,7 @@ case $OPERATION in
if [ $SYSTEMTYPE = "master" ]
then
define_xml ${IP_ADDRESS} $hostname settings BackendServerIP
- load_xml
+ load_xml $gen_xml
define_xml ${IP_ADDRESS} '' settings MasterServerIP
load_xml $gen_xml
@@ -192,7 +203,18 @@ case $OPERATION in
define_xml ${IP_ADDRESS} $hostname settings BackendServerIP
load_xml $gen_xml
fi
+
+
+ if [ $SYSTEMTYPE = "standalone" ]
+ then
+ define_xml "127.0.0.1" $hostname settings BackendServerIP
+ load_xml $gen_xml
+ define_xml "127.0.0.1" '' settings MasterServerIP
+ load_xml $gen_xml
+ fi
;;
+
+
ZIP)
define_xml $ZIPCODE $hostname settings locale
load_xml $gen_xml