Update ipv6on.sh

This commit is contained in:
Script Proyect by HP3ICC 2024-08-19 13:25:55 +00:00
parent 13066cc5ce
commit 573581895d
1 changed files with 28 additions and 1 deletions

View File

@ -26,4 +26,31 @@ update-grub
# Reiniciar para aplicar los cambios
echo "Reiniciando el sistema para aplicar los cambios..."
reboot
#reboot
cat > /tmp/completado.sh <<- "EOF"
#!/bin/bash
while : ; do
choix=$(whiptail --title "Script Proyect HP3ICC Esteban Mackay 73." --menu " Precione enter (return o intro) para finalizar la instalacion y reiniciar. / Press (return or enter) to finish the installation and reboot." 13 46 2 \
1 " Iniciar Reinicio de equipo " 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;
fi
# case : action en fonction du choix
case $choix in
1)
sudo reboot
;;
esac
done
exit 0
EOF
#################################
sudo chmod +x /tmp/completado.sh
#history -c && history -w
sh /tmp/completado.sh