Skip to content

Commit

Permalink
Try to detect webcam before offering to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Bacon committed Jul 24, 2022
1 parent 7dee26f commit 1a4e8ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions desktop-installer
Original file line number Diff line number Diff line change
Expand Up @@ -2853,9 +2853,13 @@ if [ $cups = y ]; then
fi

# As of 2019-07 interferes with uhid
webcam=`auto-ask webcam-setup 'Configure webcam? (y/n)' n`
if [ $webcam = y ]; then
auto-webcam-setup
if grep -iq '^ugen.*camera' /var/run/dmesg.boot; then
webcam=`auto-ask webcam-setup 'Configure webcam? (y/n)' n`
if [ $webcam = y ]; then
auto-webcam-setup || true
fi
else
printf "No webcam detected.\n"
fi

# After network_config
Expand Down

0 comments on commit 1a4e8ff

Please sign in to comment.