abrechenbarkeit-sd/airootfs/usr/local/bin/configure_wpa

6 lines
288 B
Text
Raw Normal View History

2024-11-09 04:13:41 +00:00
#!/usr/bin/fish
set ssid (cat /sys/firmware/efi/efivars/WlanSSID-97b6e7a4-b8a6-4d85-b7c4-0030bb5f2d38 | tail -c +5)
set psk (cat /sys/firmware/efi/efivars/WlanPSK-97b6e7a4-b8a6-4d85-b7c4-0030bb5f2d38 | tail -c +5)
2024-11-13 00:07:39 +00:00
wpa_passphrase $ssid $psk > /etc/wpa_supplicant/wpa_supplicant-wfi0.conf