Skip to content

Commit

Permalink
auto-webcam-setup: Check for ugen device before proceeding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Bacon committed Jul 24, 2022
1 parent b1a031b commit 7ae8f24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sys-scripts/auto-webcam-setup
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ fi

case $(auto-ostype) in
FreeBSD)
if ! grep -i 'ugen.*camera' /var/run/dmesg.boot; then
printf "No webcam detected. Install a webcam and run $0 again.\n"
exit 1
fi

# https://www.davidschlachter.com/misc/freebsd-webcam-browser
LOADER_CONF=/boot/loader.conf
RC_CONF=/etc/rc.conf
Expand Down

0 comments on commit 7ae8f24

Please sign in to comment.