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
2020-07-21 01:34:15 +09:00

9 lines
260 B
Bash
Executable file

#!/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='