It appears that if you make the following change to the wlan0 section of /etc/network/interfaces then wifi will come up automatically with ifplugd installed and configued as above. So the key is to add back in the 'auto wlan0' line NB change ip address stuff to suit your own lan. # wlan wifi interface auto wlan0 #allow-hotplug wlan0 iface wlan0 inet static address 1by Oaklands - Debian
Apologies there were 2 unnecessary lines in this file above, corrected version below. #===================== ###/etc/checkwifi.sh NB remember to set 'x' on permissions for this file #!/bin/sh SSID="abcdef"; #change 'abcdef' to your own SSID if iwconfig wlan0 | grep -v grep | grep $SSID > /dev/null then echo "$SSID is UP, everything is fine&quby Oaklands - Debian