base-files: gpio switch: fix inverted logic
[openwrt/openwrt.git] / package / base-files / files / etc / init.d / gpio_switch
index b67950a992c59bd85ac5052de392986adc29a85a..32c142f110233b7c85472df7def2cbaeb44b5483 100755 (executable)
@@ -24,7 +24,7 @@ load_gpio_switch()
                [ -d "$gpio_path" ] || sleep 1
        }
        # set the pin to output with high or low pin value
                [ -d "$gpio_path" ] || sleep 1
        }
        # set the pin to output with high or low pin value
-       { [ "$value" = "0" ] && echo "high" || echo "low"; } >"$gpio_path/direction"
+       { [ "$value" = "0" ] && echo "low" || echo "high"; } >"$gpio_path/direction"
 }
 
 service_triggers()
 }
 
 service_triggers()