How to Build This as a Package?

So, I created a pretty simple bit of code to control the LEDs on my OpenWRT-flashed Google Wifi points.

I'd like to distribute it to other users if they wanted to have the same sort of functionality for their LEDs as the OP firmware.

It's probably not the greatest bit of code for OpenWRT, but it does the trick, and I think others would enjoy it.

So, hoping someone could help out making a simple package I can share. Thanks!

Have a look at Script-only (no binary) OpenWrt package

Feel free to copy the code from https://github.com/stangri/source.openwrt.melmac.net/tree/master/wlanblinker

As the packages are similar in nature, should be easy for you to navigate.

You'd have to separate the luci-related code tho and while you can publish/host the lua-based luci package, it will not be accepted in the official repo until it's converted to javascript.

So by separate the luci-related code...you mean like, make the daemon and init.d portion one package, and the UI portion one package?

And for converting the .lua to js...is there a doc anywhere for this? I went with .lua because that was all I was able to find...

Yes, as the principal packages are included in the openwrt/packages repo and the WebUI is in the openwrt/luci repo.

You may be happy with the lua code for a while unless you want to send a PR to the official OpenWrt repo.

For conversion, check the https://github.com/openwrt/luci/issues/3378 and linked issues/resources. There was another, even more information issue for the conversion specifically, but I couldn't quickly locate it.

1 Like