mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ipv6on.sh
This commit is contained in:
parent
13066cc5ce
commit
573581895d
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue