Skip to content

Commit

Permalink
net/wireguard-tools: Revert kldunload from rc.d scripts
Browse files Browse the repository at this point in the history
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 562d171

PR:		274428
Reported by:	vedad@kajtaz.net
  • Loading branch information
decke committed Nov 6, 2023
1 parent dc7d822 commit c83f22d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion net/wireguard-tools/Makefile
@@ -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/

Expand Down
7 changes: 0 additions & 7 deletions net/wireguard-tools/files/wireguard_lite.in
Expand Up @@ -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()
Expand Down
7 changes: 0 additions & 7 deletions net/wireguard-tools/files/wireguard_wgquick.in
Expand Up @@ -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()
Expand Down

0 comments on commit c83f22d

Please sign in to comment.