Other solution: check wireless interface status (Access Point) in some intervals

#!/bin/sh while true do sleep 5 AP=$(iwconfig apcli0| awk '/Access Point: .*/ {print $5}') if [ "$AP" = "Not-Associated" ] ; then logger -t wifi-watch "WiFi not assosiated, restarting wifimanager"; ifconfig apcli0 up wifimanager fi done

Can be added to init.d (procd).