From 9feef983979254ddb2596cafe02cbe439934df11 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 24 Nov 2024 05:42:40 -0600 Subject: [PATCH] Egh --- install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 9064b66..736d6cb 100755 --- a/install.sh +++ b/install.sh @@ -336,13 +336,13 @@ function disable_ipv6() { else echo "IPv6 already disabled." fi - fi - - 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." + 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 }