#!/bin/sh #magnificent piece of code, uh? if [[ "`iwconfig wlan0|grep -c "Management:off"`" -gt 0 ]]; then killall wlancond fi