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:
parent
dc7d82206c
commit
c83f22d493
3 changed files with 1 additions and 15 deletions
|
@ -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/
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue