# starts monitor mode on selected interface function monitor_interface { ifconfig $WIFI down $MONITOR $WIFI destroy $MONITOR $WIFI create wlandev wifi0 wlanmode monitor ifconfig $WIFI up IS_MONITOR='iwconfig $WIFI |grep monitor' clear echo $IS_MONITOR }