Saturday, January 07, 2017

wondershaper: bashrc aliases

Assuming name of interface to use is `enp0s3`. Yours can be different. Thus, needs to change it wshaperstart()
{
local downloads=3000;
local uploads=50;

[[ -n $1 ]] && downloads=$1;
[[ -n $2 ]] && uploads=$2;

echo "Executing: sudo wondershaper -a enp0s3 -d $downloads -u $uploads";

sudo wondershaper -a enp0s3 -d $downloads -u $uploads
}

alias wshaperclear="sudo wondershaper -c -a enp0s3"