Skip to content

Instantly share code, notes, and snippets.

@BlackDex
Forked from vkdimitrov/dd-wrt _cron
Created July 12, 2016 20:16
Show Gist options
  • Save BlackDex/a59457b6adf7a794f5bc63d5bc4aed6a to your computer and use it in GitHub Desktop.
Save BlackDex/a59457b6adf7a794f5bc63d5bc4aed6a to your computer and use it in GitHub Desktop.
dd-wrt cronjob that check if there are active wifi clients, and if not reduce TX Power to min (without disabling the radio), else set it to 50
*/1 * * * * root I=`nvram get wl0_ifname`;[ -z `wl -i $I assoclist` ] && wl txpwr1 -o -m 1 || wl txpwr1 -o -m 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment