aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2022-07-31 10:19:09 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-06 19:58:46 +0200
commitb8f27251c9f755f7219391daa0e15318a12972a3 (patch)
treec871464d1efcf8837975265b23f51fa057ef4e4a
parentccff2fbaea50ae983a25483a40ae2dbaeeca5581 (diff)
downloadupstream-b8f27251c9f755f7219391daa0e15318a12972a3.tar.gz
upstream-b8f27251c9f755f7219391daa0e15318a12972a3.tar.bz2
upstream-b8f27251c9f755f7219391daa0e15318a12972a3.zip
base-files: LED/gpio: Ensure inverted is read as a boolean
The sysfs interface for the GPIO takes a boolean value. Ensure we get one from uci. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
-rwxr-xr-xpackage/base-files/files/etc/init.d/led2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 51cb8b5178..732ac59a84 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -29,7 +29,7 @@ load_led() {
config_get delay $1 delay "150"
config_get message $1 message ""
config_get gpio $1 gpio "0"
- config_get inverted $1 inverted "0"
+ config_get_bool inverted $1 inverted "0"
# execute application led trigger
[ -f "/usr/libexec/led-trigger/${trigger}" ] && {