Skip to content

Draft: patches/openwrt: base-files: Support for MOX heartbeat LED

Josef Schlehofer requested to merge burstlab into hbl
  • First argument: "config" (mostly used in OpenWrt as wan), which seems to be alright in our case as it is primary WAN port on module A
  • Second argument "name" thus MOX A (where is the LED), could be renamed, but I think MOX A fits our case
  • Third argument: name in sysfs

Reference: https://github.com/openwrt/openwrt/blob/b36de68da6bc5a7f61e5ede16fd403085d24433c/package/base-files/files/lib/functions/uci-defaults.sh#L409

In LED Configuration, it looks like this: image

The LED now does the heartbeat. Original author of this patch is @mhrusecky and I modified it based on findings above.

The first part of the patch related to uci-defaults is submitted to OpenWrt: https://github.com/openwrt/openwrt/pull/10730

Edited by Josef Schlehofer

Merge request reports