diff options
Diffstat (limited to 'abs/core/LinHES-config/myth_settings_wrapper.sh')
-rw-r--r-- | abs/core/LinHES-config/myth_settings_wrapper.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/abs/core/LinHES-config/myth_settings_wrapper.sh b/abs/core/LinHES-config/myth_settings_wrapper.sh index 6ceec7f..a1fbffc 100644 --- a/abs/core/LinHES-config/myth_settings_wrapper.sh +++ b/abs/core/LinHES-config/myth_settings_wrapper.sh @@ -9,7 +9,7 @@ TEMPLATES="$TEMPLATES/settings" TABLES="settings keybindings jumppoints" MYTHDBUSER=mythtv MYTHTVPASSWD=mythtv -declare -r OPTSTRING="c:e:t:d:h:s:a:z:Ho" +declare -r OPTSTRING="c:e:t:d:h:s:a:z:Ho:n:j:" Thistemplate="" declare -i OVERRIDE=0 declare -i EVERYTHING=0 @@ -152,6 +152,13 @@ do ARG_ERR ZIPCODE=$OPTARG ;; + n) echo "$SWITCH" "$OPTARG" + newhostname=$OPTARG + ;; + + j) echo "$SWITCH" "$OPTARG" + oldhostname=$OPTARG + ;; o) OVERRIDE=1 ;; @@ -268,7 +275,8 @@ case $OPERATION in #used when the hostname is changed. # #call myth_util $oldhostname $hostname - + mythutil --change-hostname --new-host $newhostname --old-host $oldhostname + mythutil --import-settings --infile $TEMPLATES/$Thistemplate/syssettings.xml --hostname $newhostname ;; USERJOBALLOW) echo "UserJOBALLOW callremoved" |