From: Jan Kratochvil Date: Tue, 9 Apr 2024 08:18:07 +0000 (+0800) Subject: psu: full paths X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=1030bd8ae5433ceb966cb6c5e4650dd6a795728c psu: full paths --- diff --git a/bin/psu b/bin/psu index 51cdf90..c8d9697 100755 --- a/bin/psu +++ b/bin/psu @@ -1,4 +1,4 @@ #! /bin/bash -acpi|&grep -Eq 'Battery 0: Not charging|Battery 0: Charging|No support for device type: power_supply' || exit 1 -grpcurl -v -plaintext -d '{"get_status":{}}' 192.168.1.1:9000 SpaceX.API.Device.Device/Handle &>/dev/null || exit 1 +/usr/bin/acpi|&grep -Eq 'Battery 0: Not charging|Battery 0: Charging|No support for device type: power_supply' || exit 1 +/usr/bin/grpcurl -v -plaintext -d '{"get_status":{}}' 192.168.1.1:9000 SpaceX.API.Device.Device/Handle &>/dev/null || exit 1 exit 0