@@ -272,33 +272,26 @@ function format_music_drive {
function configure_interactive_koel {
W=(1 $"Import music from directory"
2 $"Import music from USB drive"
3 $"Export music to USB drive"
4 $"Format a USB drive for music storage")
while true
do
data=$(mktemp 2>/dev/null)
dialog --backtitle$"Freedombone Control Panel"\
--title$"Koel"\
--radiolist$"Choose an operation:" 12 70 5 \
1 $"Import music from directory" off \
2 $"Import music from USB drive" off \
3 $"Export music to USB drive" off \
4 $"Format a USB drive for music storage" off \
5 $"Exit" on 2> "$data"
sel=$?
case$selin
1)rm-f"$data"
break;;
255)rm-f"$data"
break;;
esac
case$(cat"$data")in
# shellcheck disable=SC2068
selection=$(dialog --backtitle$"Freedombone Administrator Control Panel"--title$"Koel"--menu$"Choose an operation, or ESC to exit:" 12 60 4 "${W[@]}" 3>&2 2>&1 1>&3)