This commit is contained in:
Esteban Mackay Q 2023-10-05 00:14:04 -05:00
parent 300c29ab0f
commit 7c8604a5dd
2 changed files with 18 additions and 15 deletions

View File

@ -25,14 +25,14 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu DVSwitch" --menu "Nota :
7 " Remove Buttons Dashboard " \
8 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$?
#on recupere ce choix
#exitstatus=$?
if [ $exitstatus = 0 ]; then
echo "Your chosen option:" $choix
else
echo "You chose cancel."; break;
echo "You chose cancel."
break
fi
# case : action en fonction du choix
case $choix in
1)
#!/bin/bash
@ -156,7 +156,8 @@ else
fi
fi ;;
8)
break;
break
;;
esac
done
exit 0
@ -178,14 +179,14 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu DVSwitch" --menu "Nota :
8 " Remove Buttons Dashboard " \
9 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$?
#on recupere ce choix
#exitstatus=$?
if [ $exitstatus = 0 ]; then
echo "Your chosen option:" $choix
else
echo "You chose cancel."; break;
echo "You chose cancel."
break
fi
# case : action en fonction du choix
case $choix in
1)
#!/bin/bash
@ -316,7 +317,8 @@ else
fi
fi ;;
9)
break;
break
;;
esac
done
exit 0

View File

@ -26,14 +26,14 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu P25Reflector" --menu "Sub
8 " remove setup.php " \
9 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$?
#on recupere ce choix
#exitstatus=$?
if [ $exitstatus = 0 ]; then
echo "Your chosen option:" $choix
else
echo "You chose cancel."; break;
echo "You chose cancel."
break
fi
# case : action en fonction du choix
case $choix in
1)
sudo nano /etc/P25Reflector.ini ;;
@ -110,7 +110,8 @@ if [ -f "/var/www/p25/setup.php" ]
whiptail --title "P25Reflector" --msgbox "setup.php is not enabled / setup.php no esta habilitado" 0 50
fi ;;
9)
break;
break
;;
esac
done
exit 0