diff --git a/.gitignore b/.gitignore index e2d7ddd..6c03ca8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,7 @@ config.toml vendor/ userDb.json masterDb.json -extras/*.csv \ No newline at end of file +extras/*.csv +macVendorDb.csv +listUnkown +spaceDevices \ No newline at end of file diff --git a/cmd/unkownDevices/listUnkown.go b/cmd/unkownDevices/listUnkown.go index 0290dac..c690de3 100644 --- a/cmd/unkownDevices/listUnkown.go +++ b/cmd/unkownDevices/listUnkown.go @@ -48,7 +48,7 @@ func main() { } func loadMacDb() map[string]string { - file, err := os.Open("extras/macDb.csv") + file, err := os.Open("macVendorDb.csv") check(err) defer file.Close() diff --git a/do.sh b/do.sh index 03011f0..a2dcc31 100755 --- a/do.sh +++ b/do.sh @@ -17,10 +17,10 @@ while (( "$#" )); do env GOOS=linux GOARCH=amd64 go build cmd/unkownDevices/listUnkown.go ;; test-sync) - rsync -n -avzi --delete spaceDevices listUnkown webUI extras/macDb.csv root@spacegate:/home/status/spaceDevices2/ + rsync -n -avzi --delete spaceDevices listUnkown webUI macVendorDb.csv root@spacegate:/home/status/spaceDevices2/ ;; sync) - rsync -avzi --delete spaceDevices listUnkown webUI extras/macDb.csv root@spacegate:/home/status/spaceDevices2/ + rsync -avzi --delete spaceDevices listUnkown webUI macVendorDb.csv root@spacegate:/home/status/spaceDevices2/ ;; *) usage diff --git a/extras/README.md b/extras/README.md index e747ae4..6d89ca2 100644 --- a/extras/README.md +++ b/extras/README.md @@ -2,4 +2,4 @@ 1. Download the "MAC Address Block Large" (oui.csv) from here https://regauth.standards.ieee.org/standards-ra-web/pub/view.html#registries -2. Convert: `./convertOui.py > macDb.csv` +2. Convert: `./convertOui.py > ../macVendorDb.csv`