Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-selkies-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ for pad_file in "${PAD_FILES[@]}"; do
fi
done

# webcam setup
if [[ -z ${NO_WEBCAM+x} ]] && [[ ! -e /dev/video0 ]] && { mknod /dev/video0 c 81 0 2>/dev/null || touch /dev/video0 2>/dev/null; }; then
# webcam setup, a regular file at /dev/video0 is our own placeholder from an earlier init
if [[ -z ${NO_WEBCAM+x} ]] && { [[ -f /dev/video0 ]] || { [[ ! -e /dev/video0 ]] && { mknod /dev/video0 c 81 0 2>/dev/null || touch /dev/video0 2>/dev/null; }; }; }; then
chmod 777 /dev/video0
printf "true" > /run/s6/container_environment/SELKIES_WEBCAM_ENABLED
printf "true" > /run/s6/container_environment/SELKIES_UI_SIDEBAR_SHOW_WEBCAM
Expand Down
Loading