From f7b589a07017e5461a34a62cbfc7f03577303f42 Mon Sep 17 00:00:00 2001 From: Alban Vidal Date: Fri, 22 Mar 2019 05:44:53 +0100 Subject: [PATCH] Use systemd instead of sysctl to disable IPv6 Signed-off-by: Alban Vidal --- auto_config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto_config.sh b/auto_config.sh index 05acab9..eb409c1 100755 --- a/auto_config.sh +++ b/auto_config.sh @@ -174,7 +174,8 @@ if $DISABLE_IPv6 ; then # Disable ipv6 on all connexion net.ipv6.conf.all.disable_ipv6 = 1 EOF - sysctl -p /etc/sysctl.d/98-disable-ipv6.conf + # Disable IPv6 now + systemctl restart systemd-sysctl.service fi ################################################################################