From 06a8328cb884456ca7e5c9dbe1c3bbe38f349f01 Mon Sep 17 00:00:00 2001 From: cycool29 Date: Sat, 29 Jan 2022 14:39:39 +0800 Subject: [PATCH] Check if `build` folder exists instead of checking `raspberrypi-kernel-headers` --- apps/DroidCam/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/DroidCam/install b/apps/DroidCam/install index 112a74bf8b..3c476cdfdc 100755 --- a/apps/DroidCam/install +++ b/apps/DroidCam/install @@ -8,8 +8,8 @@ if [ "$(uname -m)" == "arm64" ] || [ "$(uname -m)" == "aarch64" ]; then fi fi -if ! package_installed "raspberrypi-kernel-headers"; then - warning "DroidCam needs kernel headers to work.\nPlease install raspberrypi-kernel-headers (sudo apt install raspberrypi-kernel-headers) and reboot your system.\n" +if ! [ -d "/lib/modules/$(uname -r)/build" ]; then + warning "DroidCam needs kernel headers to work.\nPlease install kernel headers (sudo apt install linux-headers) and reboot your system.\n" exit 1 fi