From 9e681b1e4285c910c557347d67a49b329994cdfd Mon Sep 17 00:00:00 2001 From: kimocoder Date: Wed, 22 May 2019 00:14:09 +0200 Subject: [PATCH] Added a switch to IPv6 disable/enable --- Makefile | 1 + dkms-install.sh | 4 ++-- dkms-remove.sh | 2 +- 3 files changed, 4 insertions(+), 3 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..6167817 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 diff --git a/dkms-remove.sh b/dkms-remove.sh index 96d9b20..a14bb99 100755 --- a/dkms-remove.sh +++ b/dkms-remove.sh @@ -7,7 +7,7 @@ else echo "About to run dkms removal steps..." fi -DRV_DIR=rtl8812au +DRV_DIR='pwd' DRV_NAME=rtl8812au DRV_VERSION=5.3.4