[Berlin-wireless] Bandbreite per cronjob ändern?

Holger gonzo.d at web.de
Fr Mär 18 00:39:01 CET 2016


Hej Marcel,

Am 17.03.2016 um 19:10 schrieb Marcel:
>> https://github.com/ffcb/qos
> der reload erfolgt nur noch bei bedarf, die scripte selbst könnten
> sogar minutlich laufen bei bedarf.

habta hübsch jemacht!

Für explizite Bandbreiten wäre das sg.?
<code>
#!/bin/sh

uploadbandwidth=$(uci get qos.wan.upload 2>/dev/null)

if [ "$uploadbandwidth" = "1000" ]
   then
     uci set qos.wan.upload=100 2> /dev/null && \
     uci set qos.wan.download=1600 2> /dev/null && \
     uci commit qos 2> /dev/null && \
     /etc/init.d/qos reload 2> /dev/null
fi
</code>

cheerio h



Mehr Informationen über die Mailingliste Berlin