mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-20 23:04:24 +01:00
moves the vendor db
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -4,4 +4,7 @@ config.toml
|
||||
vendor/
|
||||
userDb.json
|
||||
masterDb.json
|
||||
extras/*.csv
|
||||
extras/*.csv
|
||||
macVendorDb.csv
|
||||
listUnkown
|
||||
spaceDevices
|
||||
@@ -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()
|
||||
|
||||
|
||||
4
do.sh
4
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
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user