base-files: cleanup led functions in uci-defaults.sh
authorAlberto Bursi <alberto.bursi@outlook.it>
Thu, 30 Mar 2017 09:47:32 +0000 (11:47 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 14 May 2017 19:45:50 +0000 (21:45 +0200)
commitb06a286a4861d2a15f0372aabcf643d4b49cd262
treebcb66491684a27c3a31b3f0b1ed4fd1f52cf28e5
parentaa8e91a1e4d96a5a2bfe4437b61086c6c505edc1
base-files: cleanup led functions in uci-defaults.sh

create a function with code common to all led functions,
create another function with code common to functions setting
a simple led trigger, restore alphabetical order in function names.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
[Jo-Philipp Wich: use a single underscore to denote private functions]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/base-files/files/lib/functions/uci-defaults.sh