From b9011815e916c09f2c7ca716d919526eca2b024e Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Tue, 19 Mar 2024 19:55:38 +0100 Subject: [PATCH] chore: switch to bash Signed-off-by: Stephan Wendel --- libs/hwhandler.sh | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/libs/hwhandler.sh b/libs/hwhandler.sh index 065dc46f..7767bb49 100755 --- a/libs/hwhandler.sh +++ b/libs/hwhandler.sh @@ -94,27 +94,17 @@ list_picam_resolution() { } get_libcamera_controls() { - python - < /dev/null | \ + sed 's/device//g;^SNAPSHOT/q' | sed '/^SNAPSHOT/d' | \ + sed '/^CAMERA/d;/- property/d' | sed '/\.\/camera/d' + else + log_msg "WARN: 'libcamera' device option can not be displayed, because" + log_msg "WARN: camera-streamer is not installed" + fi } list_picam_controls() {