Skip to content

Commit f05444f

Browse files
committed
raspinfo: report libcamera-hello output if installed
1 parent bbfff6d commit f05444f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

raspinfo/raspinfo

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,17 @@ uname -a
190190
cat /proc/cpuinfo | tail -3
191191

192192
echo "Throttled flag : "`vcgencmd get_throttled`
193-
echo "Camera : "`vcgencmd get_camera`
193+
194+
195+
echo "Camera Information"
196+
echo "------------------"
197+
echo
198+
199+
if command -v libcamera-hello > /dev/null; then
200+
libcamera-hello --list
201+
else
202+
echo "Camera : "`vcgencmd get_camera`
203+
fi
194204

195205
echo
196206
echo "Videocore information"

0 commit comments

Comments
 (0)