diff options
author | Julian Labus <julian@labus-online.de> | 2016-12-08 17:13:09 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-12-12 09:57:40 +0100 |
commit | b0ac825884e7bfe3f68385109df3234e37022c71 (patch) | |
tree | e9782c52e615af43db1338effd8463307723bf70 /package/base-files/files/bin/config_generate | |
parent | 7c47f43fe650309e6a2383c99273dc1bde367bc1 (diff) | |
download | upstream-b0ac825884e7bfe3f68385109df3234e37022c71.tar.gz upstream-b0ac825884e7bfe3f68385109df3234e37022c71.tar.bz2 upstream-b0ac825884e7bfe3f68385109df3234e37022c71.zip |
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/package/base-files/files/lib/functions/uci-defaults.sh#L197
[2] https://github.com/lede-project/source/blob/master/package/base-files/files/etc/init.d/gpio_switch#L17
Signed-off-by: Julian Labus <julian@labus-online.de>
Diffstat (limited to 'package/base-files/files/bin/config_generate')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 13ddb07e92..f9b4e5ca9e 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -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 .. |