Skip to content

Commit

Permalink
Merge branch 'test'
Browse files Browse the repository at this point in the history
  • Loading branch information
coolapso committed Jun 10, 2022
2 parents 0b5aab8 + 712d398 commit f8cb945
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

## June 10th 2022

- Bug fixes & Improvements
- Add support for builtin WireGuard module [#1548](#1548) [#1549](#1549)

## May 24th 2022

- Code quality and improvements
Expand Down
10 changes: 2 additions & 8 deletions auto_install/install.sh
Expand Up @@ -93,9 +93,6 @@ c=$(( c < 70 ? 70 : c ))
# Override localization settings so the output is in English language.
export LC_ALL=C

# Enable recursive globbing to find wireguard.ko in /lib/modules.
shopt -s globstar

main(){
# Pre install checks and configs
rootCheck
Expand Down Expand Up @@ -492,12 +489,9 @@ 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
[[ -f $i ]] || continue
dpkg-query -S "$i" &> /dev/null || continue
if dpkg-query -S '/lib/modules/*/wireguard.ko*' &> /dev/null || modinfo wireguard 2> /dev/null | grep -q '^filename:[[:blank:]]*(builtin)$'; then
WIREGUARD_BUILTIN=1
break
done
fi

if
# If the module is builtin and the package available, we only need to install wireguard-tools.
Expand Down

0 comments on commit f8cb945

Please sign in to comment.