base-files: gpio switch: fix inverted logic
authorMathias Kresin <dev@kresin.me>
Sun, 14 Jan 2018 23:28:03 +0000 (00:28 +0100)
committerMathias Kresin <dev@kresin.me>
Thu, 18 Jan 2018 06:22:36 +0000 (07:22 +0100)
commitf476c9a7458f9a1da876df02cce065f9cdeedd87
tree5dedff6a3be75d71467235071fa2c66076ee9eab
parent1ca4f8ca1c650785f7c105a9306ddac3792562c9
base-files: gpio switch: fix inverted logic

GPIOs are exported as active high to the sysfs, hence the logic need to be
inverted.

Fixes: e66c47fb14f5 ("base-files: gpio switch: set output value with
       direction")
Signed-off-by: Mathias Kresin <dev@kresin.me>
package/base-files/files/etc/init.d/gpio_switch