As it was said in 463719, device/power/state is deprecated. I have no such file on 2.6.24. I use following code for isAnyWirelessPoweredOn:
isAnyWirelessUp() { for DEVICE in /sys/class/net/* ; do [ -d $DEVICE/wireless ] || continue [ "`cat $DEVICE/operstate`" != "down" ] || continue [ -r $DEVICE/device/rf_kill ] && [ "`cat $DEVICE/device/rf_kill`" -eq 0 ] || continue return 0 done # otherwise return failure return 1 } By the way, there is no need in 60-asus-wireless-led.sh at startup for ipw3945. The driver sets led state properly. I use this tricky led setting only after resume from suspend to ram, because then the led sometimes is not resumed. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]