90-ath9k-blackout-workaround 287 B

123456789101112131415
  1. #!/bin/sh
  2. [[ "${ACTION}" != "ifup" ]] && exit 0;
  3. . /lib/functions.sh
  4. config_load "wireless"
  5. local RADIO
  6. config_get RADIO ${INTERFACE} device
  7. [[ -z ${RADIO} ]] && exit 0;
  8. local HWMODE
  9. config_get HWMODE ${RADIO} hwmode
  10. [[ "${HWMODE}" != "11g" ]] && exit 0;
  11. date +%s > /tmp/ath9k-reset