mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
Add support for xz-compressed WireGuard kernel module
which is the default since Linux 5.15. Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
2b791eb6a8
commit
f120fab78f
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ preconfigurePackages(){
|
|||
# and not part of the .deb).
|
||||
# Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815
|
||||
WIREGUARD_BUILTIN=0
|
||||
for i in /lib/modules/**/wireguard.ko; do
|
||||
for i in /lib/modules/**/wireguard.ko{,.xz}; do
|
||||
[[ -f $i ]] || continue
|
||||
dpkg-query -S "$i" &> /dev/null || continue
|
||||
WIREGUARD_BUILTIN=1
|
||||
|
|
Loading…
Reference in a new issue