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:
parent
2c50f68bc0
commit
9506dc0062
1 changed files with 8 additions and 1 deletions
|
@ -5,7 +5,14 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# 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
|
# PERSONAL HELPERS
|
||||||
|
|
Loading…
Add table
Reference in a new issue