#!/bin/rc -e if(~ $#essid 0){ echo set '$'essid exit '$essid not set' } ip/ipconfig ether /net/ether0 unbind bind -a '#'l1 /net aux/wpa -p2 -s $essid /net/ether1 ip/ipconfig ether /net/ether1 cat /net/ndb