Update ipv6off.sh

This commit is contained in:
Script Proyect by HP3ICC 2024-09-14 03:37:39 +00:00
parent 69a386d9be
commit 2f4f276107
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
if [ ! "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
sudo sed -i '/listen \[::\]:wd0p/ s/.*/echo ""/' /bin/menu*
sudo sed -i '/listen \[::\]:wd0p/ s/.*/echo ""/' /bin/MENU*
sudo sed -i '/listen \[::\]:/ s/.*//' /etc/nginx/sites-enabled/*
@ -51,4 +51,5 @@ if check_ipv6_enabled; then
echo "IPv6 ha sido deshabilitado en todas las interfaces y de forma persistente."
else
echo "IPv6 ya está deshabilitado, no es necesario ejecutar el script."
fi
fi
fi