mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ipv6on-custom.sh
This commit is contained in:
parent
a1b1b00684
commit
8bb044ba45
|
|
@ -16,8 +16,7 @@ sed -i '/net.ipv6.conf.lo.disable_ipv6/d' /etc/sysctl.conf
|
|||
echo "net.ipv6.conf.all.disable_ipv6 = 0" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.default.disable_ipv6 = 0" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.lo.disable_ipv6 = 0" >> /etc/sysctl.conf
|
||||
|
||||
grep -qxF 'net.ipv6.conf.eth0.disable_ipv6 = 1' /etc/sysctl.conf || echo 'net.ipv6.conf.eth0.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.eth0.disable_ipv6 = 1" >> /etc/sysctl.conf
|
||||
|
||||
# Aplicar los cambios de sysctl
|
||||
sysctl -p
|
||||
|
|
@ -30,20 +29,17 @@ update-grub
|
|||
echo "Reiniciando el sistema para aplicar los cambios..."
|
||||
#reboot
|
||||
|
||||
cat > /tmp/completado.sh <<- "EOF"
|
||||
cat > /tmp/completado.sh << "EOF"
|
||||
#!/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=$?
|
||||
#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)
|
||||
reboot
|
||||
|
|
|
|||
Loading…
Reference in New Issue