Created
March 23, 2014 14:43
-
-
Save NoUsername/9723923 to your computer and use it in GitHub Desktop.
helper script for setting speed limit in openwrt via wshaper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
speed=4000 | |
if [ $# -gt 0 ]; then | |
speed=$1 | |
fi | |
printf "setting speed to $speed\n" | |
uci set wshaper.settings.downlink=$speed | |
uci commit | |
/etc/init.d/wshaper restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment