Lines Matching refs:IFACE
147 IFACE=
177 i) IFACE=$OPTARG ;;
207 if [ "$IFACE" ]; then
208 if ! $IFCONFIG $IFACE 2>/dev/null | grep "inet " >/dev/null 2>&1 ; then
210 echo "Error: unable to find interface $IFACE"
214 echo "Auto-configuring $IFACE (channel $CHANNEL)"
219 if [ X$IFACE != X ]; then
221 IP_ADDRESS=`$IFCONFIG $IFACE | grep inet | awk '{print $2}'`
224 HEX_NETMASK=`$IFCONFIG $IFACE | grep netmask | awk '{print $4}'`
228 MAC_ADDRESS=`$IFCONFIG $IFACE | grep ether | awk '{print $2}'`
234 $PING -i $IFACE $GATEWAY_IP 1 >/dev/null 2>&1
244 if [ X$IFACE != X ]; then
246 IP_ADDRESS=`$IFCONFIG $IFACE | grep "inet addr" | awk -F"[:[:space:]]+" '{print $4}'`
249 IP_NETMASK=`$IFCONFIG $IFACE | grep Bcast | awk -F"[:[:space:]]+" '{print $8}'`
252 MAC_ADDRESS=`$IFCONFIG $IFACE | grep HWaddr | awk '{print $5}'`