Code: Select all
. $HOME/.wifi-connect/netblocks
echo $A{a..z}
Code: Select all
yad --plug=$$ --form --field="Selector:CBE" "`echo A{a..z}`"
Code: Select all
$Ag
when I import the netblocks file with 26 blocks as variables as follows
Code: Select all
# Only WPA-PSK is used. Any valid cipher combination is accepted.
Ac='$sect
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40'
# WPA-Personal(PSK) with TKIP and enforcement for frequent PTK rekeying
Ad='$sect
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
wpa_ptk_rekey=600'
# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used WEP104
# or WEP40 as the group cipher will not be accepted.
Ae='ssid=$ssid
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP TKIP
group=CCMP TKIP
eap=TLS
identity="$id"
ca_cert="/etc/cert/ca.pem"
client_cert="/etc/cert/user.pem"
private_key="/etc/cert/user.prv"
private_key_passwd="$password"'
Code: Select all
echo "$Ag" >/tmp/PIPE
Code: Select all
rm -f /tmp/PIPE
mkfifo -m 755 /tmp/PIPE
exec 4<> /tmp/PIPE
touch /tmp/net
. $HOME/.wifi-connect/netblocks
while read line
do
. $HOME/.wifi-connect/netblocks
echo "`cat /tmp/net`" >/tmp/PIPE
done &
yad --plug=$$ --tabnum=1 --list --columns=1 --item-separator=" " --column="NetBLocks:CBE" `echo A{a..z}` --select-action='bash -c "printf %s $1 | sed 's/^/\$/g' >/tmp/net"' &
yad --plug=$$ --tabnum=2 --text-info <&4 &
yad --window-icon=/usr/share/pixmaps/refdnd.png --width=400 --height=400 \
--no-buttons --on-top --paned --splitter=100 --key=$$ --title="NetBlocks" --tab="Preview" --tab="Selector" --orient=hori &