Skip to content

Commit

Permalink
disable legacy camera by default and add raspistill shim
Browse files Browse the repository at this point in the history
  • Loading branch information
kou029w committed Aug 20, 2024
1 parent 533749e commit 55e65d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 7 additions & 0 deletions stage2/99-enable-camera/00-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash -e

install {files,"${ROOTFS_DIR}"}/usr/local/bin/raspistill

on_chroot <<EOF
raspi-config nonint do_camera 0
EOF
2 changes: 2 additions & 0 deletions stage2/99-enable-camera/files/usr/local/bin/raspistill
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec libcamera-still --verbose=0 "$@"
6 changes: 0 additions & 6 deletions stage2/99-enable-legacy-camera/00-run.sh

This file was deleted.

0 comments on commit 55e65d0

Please sign in to comment.