I've got a number of Unifi WAPs in service. Some of them are going EOL in the new year, so I'm looking to move to a more long term solution rather than buy new WAPs.
I've got a test unit set up how I'd like, except for the unit's hostname. I'd like it to be OpenWRT-202917, where the last 6 digits are the last 6 digits of the LAN interface's MAC address.
I've got a number of these WAPs and I'd like to avoid manually changing each one's hostname.
I know solutions like OpenWisp2 exist, but I've not been able to get that running (yet) on my docker swarm.
The final question:
Is there a way to dynamically define the $HOSTNAME variable, and if so, is there a way to do so without having to write a custom startup script?