|
@@ -827,6 +827,31 @@ function menu_hubzilla {
|
827
|
827
|
done
|
828
|
828
|
}
|
829
|
829
|
|
|
830
|
+function menu_media {
|
|
831
|
+ while true
|
|
832
|
+ do
|
|
833
|
+ data=$(tempfile 2>/dev/null)
|
|
834
|
+ trap "rm -f $data" 0 1 2 5 15
|
|
835
|
+ dialog --backtitle $"Freedombone Control Panel" \
|
|
836
|
+ --title $"Media Menu" \
|
|
837
|
+ --radiolist $"Choose an operation:" 13 70 2 \
|
|
838
|
+ 1 $"Attach a drive containing playable media" off \
|
|
839
|
+ 2 $"Remove a drive containing playable media" off \
|
|
840
|
+ 3 $"Exit" on 2> $data
|
|
841
|
+ sel=$?
|
|
842
|
+ case $sel in
|
|
843
|
+ 1) break;;
|
|
844
|
+ 255) break;;
|
|
845
|
+ esac
|
|
846
|
+ case $(cat $data) in
|
|
847
|
+ 1) remove-music
|
|
848
|
+ attach-music;;
|
|
849
|
+ 2) remove-music;;
|
|
850
|
+ 3) break;;
|
|
851
|
+ esac
|
|
852
|
+ done
|
|
853
|
+}
|
|
854
|
+
|
830
|
855
|
function menu_top_level {
|
831
|
856
|
while true
|
832
|
857
|
do
|
|
@@ -834,7 +859,7 @@ function menu_top_level {
|
834
|
859
|
trap "rm -f $data" 0 1 2 5 15
|
835
|
860
|
dialog --backtitle $"Freedombone Control Panel" \
|
836
|
861
|
--title $"Control Panel" \
|
837
|
|
- --radiolist $"Choose an operation:" 20 70 13 \
|
|
862
|
+ --radiolist $"Choose an operation:" 21 70 14 \
|
838
|
863
|
1 $"Backup and Restore" off \
|
839
|
864
|
2 $"Show SIP Phone Extensions" off \
|
840
|
865
|
3 $"Reset Tripwire" off \
|
|
@@ -843,11 +868,12 @@ function menu_top_level {
|
843
|
868
|
6 $"Email Filtering Rules" off \
|
844
|
869
|
7 $"Security Settings" off \
|
845
|
870
|
8 $"Hubzilla" off \
|
846
|
|
- 9 $"Change the name of this system" off \
|
847
|
|
- 10 $"Check for updates" off \
|
848
|
|
- 11 $"Power off the system" off \
|
849
|
|
- 12 $"Restart the system" off \
|
850
|
|
- 13 $"Exit" on 2> $data
|
|
871
|
+ 9 $"Media menu" off \
|
|
872
|
+ 10 $"Change the name of this system" off \
|
|
873
|
+ 11 $"Check for updates" off \
|
|
874
|
+ 12 $"Power off the system" off \
|
|
875
|
+ 13 $"Restart the system" off \
|
|
876
|
+ 14 $"Exit" on 2> $data
|
851
|
877
|
sel=$?
|
852
|
878
|
case $sel in
|
853
|
879
|
1) exit 1;;
|
|
@@ -862,11 +888,12 @@ function menu_top_level {
|
862
|
888
|
6) menu_email;;
|
863
|
889
|
7) security_settings;;
|
864
|
890
|
8) menu_hubzilla;;
|
865
|
|
- 9) change_system_name;;
|
866
|
|
- 10) check_for_updates;;
|
867
|
|
- 11) shut_down_system;;
|
868
|
|
- 12) restart_system;;
|
869
|
|
- 13) break;;
|
|
891
|
+ 9) menu_media;;
|
|
892
|
+ 10) change_system_name;;
|
|
893
|
+ 11) check_for_updates;;
|
|
894
|
+ 12) shut_down_system;;
|
|
895
|
+ 13) restart_system;;
|
|
896
|
+ 14) break;;
|
870
|
897
|
esac
|
871
|
898
|
done
|
872
|
899
|
}
|