shithub: 9utils

ref: a8462d5114f895b5fd937736d92c6ff148bec0a5
dir: /util/wifi/

View raw version
#!/bin/rc
rfork e
fn Ask{
  echo -n $1
  essid=`{dd -bs 64 -count 1 >[2]/dev/null}
}

if(test -e /net/ether1)
  echo "/net/ether1 exists"
if not 
  bind -a '#l1' /net

if(~ $#* 0){
  echo "Wifis disponibles"
  grep node '#'l1/ether1/ifstats
  echo
  Ask 'essid='
}

aux/wpa -s $essid -p /net/ether1
ip/ipconfig ether /net/ether1
cat /net/ndb