This commit is contained in:
Jeffrey Serio 2024-11-24 05:42:40 -06:00
parent 04afc6e08f
commit 9feef98397

View File

@ -336,14 +336,14 @@ function disable_ipv6() {
else
echo "IPv6 already disabled."
fi
fi
elif test -f /etc/redhat-release; then
if ! sudo grep "ipv6.disable=1" /boot/grub2/grub.cfg; then
sudo grubby --args=ipv6.disable=1 --update-kernel=ALL
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
else
echo "IPv6 already disabled."
fi
fi
}
function setup_fstab() {