Skip to content

Instantly share code, notes, and snippets.

@NoUsername
Created March 23, 2014 14:43
Show Gist options
  • Save NoUsername/9723923 to your computer and use it in GitHub Desktop.
Save NoUsername/9723923 to your computer and use it in GitHub Desktop.
helper script for setting speed limit in openwrt via wshaper
#!/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