1
0
Fork 0
mirror of https://github.com/kou029w/yama.git synced 2025-01-19 00:18:06 +00:00
yama/bin/conf-gen

10 lines
260 B
Text
Raw Normal View History

2020-07-21 01:06:43 +09:00
#!/bin/bash
# wpa_supplicant.conf の生成
# Usage: bin/conf-gen
# Required: wpa_supplicant grep
set -euo pipefail
read -p 'Please enter ssid: ' ssid
read -p 'Please enter passphrase: ' -s passphrase
wpa_passphrase "$ssid" "$passphrase" \
| grep -v '#psk='