diff --git a/install/ipv6on.sh b/install/ipv6on.sh index eba7efa..310396b 100644 --- a/install/ipv6on.sh +++ b/install/ipv6on.sh @@ -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 +