mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-23 13:49:57 +00:00
Merge pull request #322 from Hurricos/v5.3.4
Fix a check for IPv6 disbling in dkms installer
This commit is contained in:
commit
ac73f3f301
@ -7,6 +7,7 @@ else
|
|||||||
echo "About to run dkms install steps..."
|
echo "About to run dkms install steps..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
DRV_DIR=`pwd`
|
DRV_DIR=`pwd`
|
||||||
DRV_NAME=rtl8812au
|
DRV_NAME=rtl8812au
|
||||||
DRV_VERSION=5.3.4
|
DRV_VERSION=5.3.4
|
||||||
@ -20,7 +21,7 @@ RESULT=$?
|
|||||||
|
|
||||||
echo "Finished running dkms install steps."
|
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
|
if echo "net.ipv6.conf.all.disable_ipv6 = 1
|
||||||
net.ipv6.conf.default.disable_ipv6 = 1
|
net.ipv6.conf.default.disable_ipv6 = 1
|
||||||
net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf; then
|
net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf; then
|
||||||
@ -29,6 +30,6 @@ if defined(CONFIG_DISABLE_IPV6)
|
|||||||
else
|
else
|
||||||
echo "Could not disable IPv6"
|
echo "Could not disable IPv6"
|
||||||
fi
|
fi
|
||||||
endif
|
fi
|
||||||
|
|
||||||
exit $RESULT
|
exit $RESULT
|
||||||
|
Loading…
Reference in New Issue
Block a user