From 6b944270f5a848cf8453dbef5e34f1950d34d73b Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 28 Sep 2022 19:20:14 -0400 Subject: [PATCH] dmesg commit --- octoprint_deploy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 64e3918..e65f98d 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -379,8 +379,6 @@ add_camera() { done fi - #journalctl --rotate > /dev/null 2>&1 - #journalctl --vacuum-time=1seconds > /dev/null 2>&1 dmesg -C echo "Plug your camera in via USB now (detection time-out in 1 min)" counter=0 @@ -388,7 +386,7 @@ add_camera() { CAM=$(timeout 1s dmesg -w | sed -n -e 's/^.*SerialNumber: //p') TEMPUSBCAM=$(timeout 1s dmesg -w | sed -n -e 's|^.*input:.*/\(.*\)/input/input.*|\1|p') counter=$(( $counter + 1 )) - if [[ -n "$TEMPUSBCAM" ]] && [[ -z "$CAM" ]] + if [[ -n "$TEMPUSBCAM" ]] && [[ -z "$CAM" ]]; then break fi done