net/wireguard-tools: Revert kldunload from rc.d scripts

Unloading if_wg(4) kmod was added to rc.d scripts to make sure that a
service restart also reload the kernel module.

Now we don't have frequent updates anymore and the wireguard-kmod port
will soon be gone but people using this script face issues in VNET jails.

This commit reverts 562d171b9d

PR:		274428
Reported by:	vedad@kajtaz.net
This commit is contained in:
Bernhard Froehlich 2023-11-06 11:09:20 +00:00
parent dc7d82206c
commit c83f22d493
No known key found for this signature in database
GPG key ID: 4DD88C3F9F3B8333
3 changed files with 1 additions and 15 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= wireguard-tools
PORTVERSION= 1.0.20210914
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net net-vpn
MASTER_SITES= https://git.zx2c4.com/wireguard-tools/snapshot/

View file

@ -82,13 +82,6 @@ wireguard_stop()
ifconfig ${interface} destroy
done
if kldstat -q -n if_wg; then
if ! kldunload if_wg > /dev/null 2>&1; then
warn "Can't unload if_wg module."
return 1
fi
fi
}
wireguard_reload()

View file

@ -38,13 +38,6 @@ wireguard_stop()
for interface in ${wireguard_interfaces}; do
%%PREFIX%%/bin/wg-quick down ${interface}
done
if kldstat -q -n if_wg; then
if ! kldunload if_wg > /dev/null 2>&1; then
warn "Can't unload if_wg module."
return 1
fi
fi
}
wireguard_reload()