base-files: add function for generating random MAC
authorDavid Bauer <mail@david-bauer.net>
Sat, 11 Jul 2020 11:48:40 +0000 (13:48 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 28 Jul 2020 13:52:44 +0000 (15:52 +0200)
commitc3e252d08032de80e7c82759cc9763a310a97144
tree32dda0aced50b6a1feff389d9f72e0c5aa7f61c8
parent04f06787f1c0f1d89f6b8c71430d0d0bbb62ffa5
base-files: add function for generating random MAC

This adds a function for generating a valid random MAC address (unset MC
bit / set locally administered bit).

It is necessary for devices which do not have a MAC address programmed
by the manufacturer.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/base-files/Makefile
package/base-files/files/lib/functions/system.sh