test
This commit is contained in:
parent
348fa7b302
commit
96cc369f32
@ -68,10 +68,10 @@
|
|||||||
mount(){
|
mount(){
|
||||||
clear -x
|
clear -x
|
||||||
title
|
title
|
||||||
echo "1 Mount"
|
echo "1) Mount"
|
||||||
echo "2 Unmount All"
|
echo "2) Unmount All"
|
||||||
echo
|
echo
|
||||||
echo "0 Exit"
|
echo "0) Exit"
|
||||||
read -rt 120 -p "Unmount All Please type a number: " selection
|
read -rt 120 -p "Unmount All Please type a number: " selection
|
||||||
|
|
||||||
case $selection in
|
case $selection in
|
||||||
@ -114,9 +114,9 @@ case $selection in
|
|||||||
echo -e "Mounted\n\nUnmount with:\nzfs set mountpoint=legacy $full_path && rmdir /mnt/heavyscript/$data_name\n\nOr use the Unmount All option\n"
|
echo -e "Mounted\n\nUnmount with:\nzfs set mountpoint=legacy $full_path && rmdir /mnt/heavyscript/$data_name\n\nOr use the Unmount All option\n"
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo "Would you like to mount anything else?"
|
echo -e "\nWould you like to mount anything else?"
|
||||||
echo "1 Yes"
|
echo "1) Yes"
|
||||||
echo "2 No"
|
echo "2) No"
|
||||||
read -rt 120 -p "Please type a number: " yesno
|
read -rt 120 -p "Please type a number: " yesno
|
||||||
case $yesno in
|
case $yesno in
|
||||||
1)
|
1)
|
||||||
@ -126,7 +126,8 @@ case $selection in
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Invalid selection \"$yesno\" was not an option" sleep 3
|
echo "Invalid selection \"$yesno\" was not an option"
|
||||||
|
sleep 2
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user