blob: 7a3449087ff510daf96913f3526671d658f9f5e8 [file]
#!/bin/bash
GPIO_LABEL='@GPIO_LABEL@'
if ! chip_and_line=$(gpiofind $GPIO_LABEL); then
echo "Failed to find gpio: $GPIO_LABEL" >&2
exit 1
fi
gpioset ${chip_and_line}='@ACTIVE_VAL@'