#------------------------------------------------------------------------------#
### Serviio SERVER SUBMENU

serviio.submenu ()
{
while [ "$choice" != "a,h,i,b,q" ]
do
        echo -e "${sep}"
        echo -e "${fin} Serviio Options${nc}"
        echo -e "${sep}"
        echo -e "${qry} Choose one:${nc}"
        echo " "
        echo -e "${fin}   1)${msg} Install${nc}"
        echo -e "${fin}   2)${msg} Update${nc}"
        echo -e "${fin}   3)${msg} Backup${nc}"
        echo " "
        echo -e "${ca}  a) About Serviio${nc}"
        echo -e "${ca}  i) More Info / How-To's (Currently Unavailable)${nc}"
        echo -e "${ca}  h) Get Help${nc}"
        echo " "
        echo -e "${emp}  b) Back${nc}"

        echo -e "${ssep}"
        read -r -p "     Your choice: " choice
        echo -e "${ssep}"
        echo " "

        case $choice in
            '1')	clear; echo -e "${inf} Installing..${nc}" ; echo " "
					. $scriptPath/Streaming/Serviio/install.sh ;;
            '2')	clear; echo -e "${inf} Running Update..${nc}" ; echo " "
                	. $scriptPath/Streaming/Serviio/update.sh ;;
            '3')	clear; echo -e "${inf} ..${nc}" ; echo " "
					. $scriptPath/Streaming/Serviio/backup.sh ;;

            'a')	clear; . $scriptPath/Streaming/Serviio/about.sh ;;
            'h')	clear; (. $scriptPath/gethelp.sh);;
            'i')	clear; . $scriptPath/Streaming/Serviio/moreinfo.sh ;;
			
            'b') 	clear; return ;;
			'm') 	. $scriptPath/mainmenu.sh ;;
			
            *)		echo -e "${alt}        Invalid choice, please try again${nc}" ; echo " " ;;
        esac
done
}

serviio.submenu