Hello everybody,
i try to control the downlink of my computer via wondershaper. I want to set the downlink every two seconds.
Therefore i have a the following example file, with the downlinks, that should be set:
1000
2000
3000
In this case the downlink should be limited from 0s - 2s to 1000, from 2s - 4s to 2000, ...
I tried to write the following script to execute wondershaper every two seconds, according to the file:
#!/bin/bash
while read LINE
do
wondershaper eth0 $LINE $LINE
sleep 2
done<$1
But when i execute the script with the file as parameter, i got the error massage: Illegal rate ...
I don't know why this messages appears and i hope someone can help me here.