Add reimage bootstrap: deploy.sh, setup_wifi.sh, fix setup.sh enable/reinstall, idempotent DB inserts

This commit is contained in:
Cobra
2026-04-07 13:20:15 -04:00
parent 0f754cfb7f
commit 7070f6548c
4 changed files with 186 additions and 16 deletions
+4 -4
View File
@@ -177,9 +177,9 @@ def create_innocuous_macs_db(db_path: str) -> None:
]
conn.executemany("""
INSERT INTO mac_profiles (device_type, oui, vendor, device_name,
dhcp_hostname, dhcp_vendor_class,
ttl, tcp_window, os_family)
INSERT OR IGNORE INTO mac_profiles (device_type, oui, vendor, device_name,
dhcp_hostname, dhcp_vendor_class,
ttl, tcp_window, os_family)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
""", profiles)
@@ -317,7 +317,7 @@ def create_os_sigs_db(db_path: str) -> None:
]
conn.executemany("""
INSERT INTO signatures (ttl, window, df, mss, os, version)
INSERT OR IGNORE INTO signatures (ttl, window, df, mss, os, version)
VALUES (?, ?, ?, ?, ?, ?)
""", sigs)