meta-google: host-power-control: Fix shellcheck issues
Change-Id: I9f67bc4aab9603188779c4488aef4eba6936f595
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/lib.sh b/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/lib.sh
index d523c5d..ec9723f 100644
--- a/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/lib.sh
+++ b/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/lib.sh
@@ -17,23 +17,30 @@
# Executing this directly will do nothing.
[ -n "${host_pwr_init-}" ] && return
+# shellcheck source=meta-google/recipes-google/gpio/gpio-ctrl/lib.sh
source /usr/share/gpio-ctrl/lib.sh || exit
# Read by the tooling to determine if the machine is powered on or off
+# shellcheck disable=SC2034
HOST_GPIO_PGOOD='unset'
# Set according to whether the host is powered on or off
+# shellcheck disable=SC2034
HOST_LED_PWR=''
# Written by the tooling to assert the power button
+# shellcheck disable=SC2034
HOST_GPIO_PWR_BTN='unset'
# Written by the tooling to assert a cold reset
+# shellcheck disable=SC2034
HOST_GPIO_COLD_RESET='unset'
# Written by the tooling to assert a warm reset
+# shellcheck disable=SC2034
HOST_GPIO_WARM_RESET='unset'
# Load configurations from a known location in the filesystem to populate
# named GPIOs
shopt -s nullglob
for conf in /usr/share/gpio-host-pwr/conf.d/*.sh; do
+ # shellcheck source=/dev/null
source "$conf"
done