build/packages/bsp/99disable-power-management

6 lines
117 B
Bash

#!/bin/sh
case "$2" in
up) /sbin/iwconfig $1 power off || true ;;
down) /sbin/iwconfig $1 power on || true ;;
esac