Correct an if statement in the DKMS installer script

This was introduced in commit 3b3346a. This does assume the Makefile
is in the driver directory.
This commit is contained in:
Martin Kennedy 2019-04-07 22:32:42 -04:00
parent 6e61837391
commit b85108f074

View File

@ -20,7 +20,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 +29,6 @@ if defined(CONFIG_DISABLE_IPV6)
else
echo "Could not disable IPv6"
fi
endif
fi
exit $RESULT