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

Handle installation on Raspberry Pi

RPi have their own package for kernel headers
This commit is contained in:
tituspijean 2021-06-29 21:59:29 +02:00
parent 2c50f68bc0
commit 9506dc0062

View file

@ -5,7 +5,14 @@
#=================================================
# dependencies used by the app
pkg_dependencies="linux-headers-$(uname -r) wireguard-dkms wireguard"
if grep "Raspberry Pi" /proc/device-tree/model; then
pkg_headers="raspberrypi-kernel-headers"
else
pkg_headers="linux-headers-$(uname -r)"
fi
# dependencies used by the app
pkg_dependencies="$pkg_headers wireguard-dkms wireguard"
#=================================================
# PERSONAL HELPERS