10 lines
221 B
Bash
Executable File
10 lines
221 B
Bash
Executable File
#!/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
|
|
/usr/sbin/wpa_supplicant -B -i client0 -c /etc/wpa_supplicant.conf
|