#!/bin/sh # run this as a background command from /etc/acpi/default.sh myif=wlan0 if [ -z "$myif" ]; then exit 0 fi # wait a bit unitl we did completely wake up from suspend to ram sleep 2 if /sbin/iwconfig $myif| grep -q "Access Point: Not-Associated"; then logger "$0 $myif attempt to reassociate..." /usr/local/laptop/bin/laptop_wlan_reassoc -q exit 0 fi # always on my home AP: if /sbin/iwconfig $myif| grep -q "Access Point: 00:0F:B5:17:42:EA"; then logger "$0 $myif, at home force net reset..." /usr/local/laptop/bin/laptop_wlan_reassoc -q fi