base-files: Changed UCI variable name for GPIO value from 'default' to 'value'
[openwrt/openwrt.git] / package / base-files / files / bin / config_generate
index 13ddb07..f9b4e5c 100755 (executable)
@@ -401,7 +401,7 @@ generate_gpioswitch() {
                                set system.$cfg='gpio_switch'
                                set system.$cfg.name='$name'
                                set system.$cfg.gpio_pin='$pin'
-                               set system.$cfg.default='$default'
+                               set system.$cfg.value='$default'
                        EOF
                json_select ..
        json_select ..