mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 11:20:15 +00:00
Updated WireGuard module detection to accommodate different paths
This commit is contained in:
parent
63733b44a5
commit
9955f1fc02
1 changed files with 4 additions and 1 deletions
|
@ -77,6 +77,9 @@ c=$(( c < 70 ? 70 : c ))
|
||||||
# Override localization settings so the output is in English language.
|
# Override localization settings so the output is in English language.
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
# Enable recursive globbing to find wireguard.ko in /lib/modules.
|
||||||
|
shopt -s globstar
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
|
|
||||||
######## FIRST CHECK ########
|
######## FIRST CHECK ########
|
||||||
|
@ -488,7 +491,7 @@ preconfigurePackages(){
|
||||||
# make the module part of the package since the module itself is built at install time
|
# make the module part of the package since the module itself is built at install time
|
||||||
# and not part of the .deb).
|
# and not part of the .deb).
|
||||||
# Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815
|
# Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815
|
||||||
for i in /lib/modules/*/kernel/net/wireguard/wireguard.ko; do
|
for i in /lib/modules/**/wireguard.ko; do
|
||||||
[[ -f $i ]] || continue
|
[[ -f $i ]] || continue
|
||||||
dpkg-query -S "$i" &> /dev/null || continue
|
dpkg-query -S "$i" &> /dev/null || continue
|
||||||
WIREGUARD_BUILTIN=1
|
WIREGUARD_BUILTIN=1
|
||||||
|
|
Loading…
Reference in a new issue