The purpose of this script was driven by the need to update the arp-scan OUI database on OpenWRT (get-oui was not available)
The script converts OUI data in json format to text that can be used by arp-scan.
Lua is available on OpenWRT 22.03 by default
opkg update
opkg install dkjson
wget -4 https://raw.githubusercontent.com/culliard/convert-oui-lua/master/convert-oui.lua
wget -4 https://raw.githubusercontent.com/silverwind/oui-data/master/index.json
chmod 755 convert-oui.lua
The script will take a few minutes to complete depending on the hardware resources available
./convert-oui.lua
If arp-scan-database is installed then update the file
mv ieee-oui.txt /usr/share/arp-scan/ieee-oui.txt