Skip to content

Commit

Permalink
Check if build folder exists instead of checking `raspberrypi-kerne…
Browse files Browse the repository at this point in the history
…l-headers`
  • Loading branch information
cycool29 authored and theofficialgman committed May 24, 2022
1 parent 477595f commit 06a8328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/DroidCam/install
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 06a8328

Please sign in to comment.