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:
parent
86f08902e0
commit
88f5edb095
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue