base-files: add functions to set or clear bit in MAC address
authorSungbo Eo <mans0n@gorani.run>
Sat, 25 Jan 2020 14:06:07 +0000 (23:06 +0900)
committerPetr Štetiar <ynezz@true.cz>
Wed, 8 Jul 2020 21:22:30 +0000 (23:22 +0200)
commitdc61e3b7ffdc2e3873af238a9100d44ee685578c
tree6934345a5301be10b013361bf967eb7fd7a2f7fb
parentaf9932c9b7b94417d46ba59439793514e93ba8a6
base-files: add functions to set or clear bit in MAC address

Some devices (e.g. Arduino Yun) need bitwise operations during MAC address
setup. This commit adds generalized versions of macaddr_setbit_la(), which
are helpful when manipulating a single bit in a MAC address.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
package/base-files/files/lib/functions/system.sh