#!/bin/sh try_wps_pin(){ # # ESSID MAC CHANNEL ENC WPA WPA2 PIN #set -ef ESSID="$1" MAC="$2" CHANNEL="$3" ENC="$4" WPA="$5" WPA2="$6" PIN="$7" [ "$ENC" == off ] && return 2 WPA_CONF=/tmp/wpa.conf WPA_LOG=/tmp/wpa.log rm $WPA_LOG #mkfifo $WPA_LOG killall wpa_supplicant && sleep 1 cat > $WPA_CONF <