1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Simplify linux-headers dependency

This commit is contained in:
tituspijean 2021-12-21 12:12:33 +01:00
parent 86f08902e0
commit 88f5edb095
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -7,11 +7,7 @@
# WireGuard was integrated in Linux kernel 5.6
# Before that, we need Linux Headers
if dpkg --compare-versions $(uname -r) lt 5.6; then
if grep "Raspberry Pi" /proc/device-tree/model; then
pkg_headers="raspberrypi-kernel-headers"
else
pkg_headers="linux-headers-$(uname -r)"
fi
pkg_headers="raspberrypi-kernel-headers|linux-headers-generic|linux-headers-virtual|linux-headers-$(uname -r)"
else
pkg_headers=""
fi