Skip to content
Snippets Groups Projects
Commit 863ec09f authored by Bob Mottram's avatar Bob Mottram
Browse files

Option to restart icecast stream

parent 1d6b9e74
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,7 @@ function configure_interactive_icecast {
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle $"Freedombone Control Panel" \
--title $"Icecast" \
--radiolist $"Choose an operation:" 16 70 9 \
--radiolist $"Choose an operation:" 17 70 10 \
1 $"Import stream files from directory" off \
2 $"Import stream files from USB drive" off \
3 $"Manually edit playlist" off \
......@@ -356,7 +356,8 @@ function configure_interactive_icecast {
6 $"Enable login for stream visitors" off \
7 $"Change password for stream visitors" off \
8 $"Re-scan playlist" off \
9 $"Exit" on 2> $data
9 $"Restart stream" off \
10 $"Exit" on 2> $data
sel=$?
case $sel in
1) break;;
......@@ -371,9 +372,13 @@ function configure_interactive_icecast {
6) icecast_enable_login;;
7) icecast_change_login;;
8) clear
echo $'Rescanning playlist'
echo $'Rescanning Icecast playlist'
icecast_rescan;;
9) break;;
9) clear
echo $'Restarting Icecast stream'
stop_icacast
start_icecast;;
10) break;;
esac
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment