abrechenbarkeit-sd/airootfs/usr/local/bin/configure_wpa
2024-11-09 05:13:41 +01:00

5 lines
283 B
Fish

#!/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)
wpa_passphrase $ssid $psk > /etc/wpa_supplicant/wpa_supplicant.conf