diff --git a/dkms-install.sh b/dkms-install.sh index 1a5e394..58503ef 100755 --- a/dkms-install.sh +++ b/dkms-install.sh @@ -7,6 +7,7 @@ else echo "About to run dkms install steps..." fi + DRV_DIR=`pwd` DRV_NAME=rtl8812au DRV_VERSION=5.3.4 @@ -20,7 +21,7 @@ RESULT=$? echo "Finished running dkms install steps." -if defined(CONFIG_DISABLE_IPV6) +if grep -q -e "^CONFIG_DISABLE_IPV6 = y$" "$DRV_DIR/Makefile" ; then 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 +30,6 @@ if defined(CONFIG_DISABLE_IPV6) else echo "Could not disable IPv6" fi -endif +fi exit $RESULT