cyberchallenge-modem/conf/wifi/connect.sh

10 lines
221 B
Bash
Raw Normal View History

#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: connect.sh: <ssid> <psk>"
exit 1
fi
/usr/bin/wpa_passphrase "$1" "$2" > /etc/wpa_supplicant.conf
2020-09-17 14:00:05 +02:00
/usr/sbin/wpa_supplicant -B -i client0 -c /etc/wpa_supplicant.conf