From 3b3346ab37123f4ac2af96e8f3aae257da28a349 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 7 Apr 2019 23:01:35 +0200 Subject: [PATCH] Added a switch to IPv6 disable/enable --- Makefile | 1 + dkms-install.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8bb98b4..5fe905f 100755 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ CONFIG_RTL8814A = y CONFIG_USB_HCI = y ########################## Features ########################### CONFIG_NET_NS = n +CONFIG_IPV6_DISABLE = n CONFIG_MP_INCLUDED = y CONFIG_CONCURRENT_MODE = n CONFIG_POWER_SAVING = n diff --git a/dkms-install.sh b/dkms-install.sh index 084ec68..d2f06d1 100755 --- a/dkms-install.sh +++ b/dkms-install.sh @@ -20,7 +20,7 @@ RESULT=$? echo "Finished running dkms install steps." - +if defined(CONFIG_DISABLE_IPV6) if echo "net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf; then @@ -29,6 +29,6 @@ echo "Finished running dkms install steps." else echo "Could not disable IPv6" fi - +endif exit $RESULT