Skip to content
Snippets Groups Projects
Commit 80ca0945 authored by Julian Labus's avatar Julian Labus Committed by Jonas Höglund
Browse files

base-files: Changed UCI variable name for GPIO value from 'default' to 'value'

This changes the UCI variable for the GPIO value from system.$cfg.default back
to system.$cfg.value as it was before the change from uci-defaults [1] to board.d.
/etc/init.d/gpio_switch [2] still expects the value to be in system.$cfg.value.

[1] https://github.com/lede-project/source/blob/d65916047b44d6d157d88d15e8e3d92555c5e6f8/base-files/files/lib/functions/uci-defaults.sh#L197
[2] https://github.com/lede-project/source/blob/master/base-files/files/etc/init.d/gpio_switch#L17



Signed-off-by: default avatarJulian Labus <julian@labus-online.de>
parent d0557e61
No related branches found
No related tags found
No related merge requests found
......@@ -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 ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment