Option to restart icecast stream

This commit is contained in:
Bob Mottram 2017-11-26 20:02:04 +00:00
parent 1d6b9e7402
commit 863ec09f5e
1 changed files with 9 additions and 4 deletions

View File

@ -347,7 +347,7 @@ function configure_interactive_icecast {
trap "rm -f $data" 0 1 2 5 15 trap "rm -f $data" 0 1 2 5 15
dialog --backtitle $"Freedombone Control Panel" \ dialog --backtitle $"Freedombone Control Panel" \
--title $"Icecast" \ --title $"Icecast" \
--radiolist $"Choose an operation:" 16 70 9 \ --radiolist $"Choose an operation:" 17 70 10 \
1 $"Import stream files from directory" off \ 1 $"Import stream files from directory" off \
2 $"Import stream files from USB drive" off \ 2 $"Import stream files from USB drive" off \
3 $"Manually edit playlist" off \ 3 $"Manually edit playlist" off \
@ -356,7 +356,8 @@ function configure_interactive_icecast {
6 $"Enable login for stream visitors" off \ 6 $"Enable login for stream visitors" off \
7 $"Change password for stream visitors" off \ 7 $"Change password for stream visitors" off \
8 $"Re-scan playlist" off \ 8 $"Re-scan playlist" off \
9 $"Exit" on 2> $data 9 $"Restart stream" off \
10 $"Exit" on 2> $data
sel=$? sel=$?
case $sel in case $sel in
1) break;; 1) break;;
@ -371,9 +372,13 @@ function configure_interactive_icecast {
6) icecast_enable_login;; 6) icecast_enable_login;;
7) icecast_change_login;; 7) icecast_change_login;;
8) clear 8) clear
echo $'Rescanning playlist' echo $'Rescanning Icecast playlist'
icecast_rescan;; icecast_rescan;;
9) break;; 9) clear
echo $'Restarting Icecast stream'
stop_icacast
start_icecast;;
10) break;;
esac esac
done done
} }