Save WiFi networks by SSID not PW

This commit is contained in:
2Shirt 2019-05-23 18:04:53 -06:00
parent 110acfc6e2
commit bd77216ab7
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -54,7 +54,7 @@ if __name__ == '__main__':
for ssid, password in known_networks.items(): for ssid, password in known_networks.items():
out_path = '{}/{}.nmconnection'.format( out_path = '{}/{}.nmconnection'.format(
'/etc/NetworkManager/system-connections', '/etc/NetworkManager/system-connections',
password, ssid,
) )
if not os.path.exists(out_path): if not os.path.exists(out_path):
with open(out_path, 'w') as f: with open(out_path, 'w') as f: