mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ipv6on-custom.sh
This commit is contained in:
parent
103cdaa09d
commit
42cbd21b6c
|
|
@ -17,7 +17,8 @@ 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
|
||||
|
||||
sudo 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
|
||||
# Comentado para evitar conflicto
|
||||
# echo "net.ipv6.conf.eth0.disable_ipv6 = 1" >> /etc/sysctl.conf
|
||||
|
||||
# Aplicar los cambios de sysctl
|
||||
sysctl -p
|
||||
|
|
@ -29,6 +30,7 @@ update-grub
|
|||
# Reiniciar para aplicar los cambios
|
||||
echo "Reiniciando el sistema para aplicar los cambios..."
|
||||
#reboot
|
||||
|
||||
cat > /tmp/completado.sh <<- "EOF"
|
||||
#!/bin/bash
|
||||
while : ; do
|
||||
|
|
@ -45,13 +47,13 @@ fi
|
|||
# case : action en fonction du choix
|
||||
case $choix in
|
||||
1)
|
||||
sudo reboot
|
||||
reboot
|
||||
;;
|
||||
esac
|
||||
done
|
||||
exit 0
|
||||
EOF
|
||||
#################################
|
||||
sudo chmod +x /tmp/completado.sh
|
||||
|
||||
chmod +x /tmp/completado.sh
|
||||
#history -c && history -w
|
||||
sh /tmp/completado.sh
|
||||
sh /tmp/completado.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue