#!/bin/sh if [ "$#" -ne 2 ]; then echo "Usage: connect.sh: " 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