From a037c49f6fe1e8ddd90bc164b4a6d40941e49d5f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 6 May 2019 16:25:02 -0400 Subject: [PATCH] fix install script from returning false error --- hidusb-relay-cmd-setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hidusb-relay-cmd-setup b/hidusb-relay-cmd-setup index 54fe257..e63b061 100755 --- a/hidusb-relay-cmd-setup +++ b/hidusb-relay-cmd-setup @@ -30,4 +30,6 @@ Board ID=[HURTM] State: R1=OFF R2=OFF 'HURTM' varies by board and goes into the libremanage config as the value for "relay" EOF -hidusb-relay-cmd state +if ! hidusb-relay-cmd state; then + echo "$0: WARNING: running hidusb-relay-cmd state failed. this is expected if a relay is not plugged in" >&2 +fi -- 2.25.1