From: Olliver Schinagl Date: Sun, 31 Jul 2022 08:19:09 +0000 (+0200) Subject: base-files: LED/gpio: Ensure inverted is read as a boolean X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b8f27251c9f755f7219391daa0e15318a12972a3;p=openwrt%2Fstaging%2Fjogo.git 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 --- 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}" ] && {