From 7c1913a24be2de8ba85005bdf26ed45386bc43a6 Mon Sep 17 00:00:00 2001 From: aptalca Date: Fri, 10 Apr 2020 13:44:30 -0400 Subject: [PATCH] detect rpi2/3 kernels --- root/etc/cont-init.d/30-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index d736e68..839d712 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -8,7 +8,7 @@ if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then apt-get install -y \ linux-headers-$(uname -r) \ wireguard -elif uname -r | grep -q 'v7l+'; then +elif (uname -r | grep -q 'v7+') || (uname -r | grep -q 'v7l+'); then echo "Raspbian kernel naming convention detected, attempting to install raspbian kernel headers" curl -s http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - echo -e \