Update ipv6on-custom.sh

This commit is contained in:
Script Proyect by HP3ICC 2024-08-19 17:23:32 +00:00
parent 7b2708a21c
commit fc6ea67253
1 changed files with 5 additions and 23 deletions

View File

@ -26,26 +26,8 @@ update-grub
# Reiniciar para aplicar los cambios
echo "Reiniciando el sistema para aplicar los cambios..."
#reboot
cat > /tmp/completado.sh << "EOFXD"
#!/bin/bash
while : ; do
choix=$(whiptail --title "Script Proyect HP3ICC Esteban Mackay 73." --menu "Al finalizar el reinicio escriba menu-adn2 para configurar su servidor. / At the end of the reboot type menu-adn2 to configure your server." 13 46 2 \
1 " Iniciar Reinicio / Start Reboot " 3>&1 1>&2 2>&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
echo "Your chosen option:" $choix
else
echo "You chose cancel."; break;
fi
case $choix in
1)
reboot
;;
esac
done
exit 0
EOFXD
#
chmod +x /tmp/completado.sh
#history -c && history -w
sh /tmp/completado.sh
#reboot
whiptail --title "Reinicio Requerido" --msgbox "* Debe reiniciar para aplicar los cambios.\n\nPresione Enter para reiniciar el equipo.\n\n\n* Need to reboot to apply the changes\n\nPress Enter to restart your computer" 15 60
# Reiniciar para aplicar los cambios
echo "Reboot..."
sudo reboot