mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-25 03:43:43 +01:00
Egh
This commit is contained in:
parent
04afc6e08f
commit
9feef98397
14
install.sh
14
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user