Temat: Harmonogram QOS
Witam, chciałbym stworzyć sobie harmonogram Qos w następujący sposób:
- skopiować plik konfiguracyjny do folderów slow i fast (nie wiem gdzie się znajduje).
- w cronie ustawić podmianę pliku konfiguracyjnego (nie wiem czy wystarczy copy + ścieżki)
Jeżeli, to co napisałem wyżej nie jest możliwe, proszę o komendy umożliwiające ustawienie w cronie min. i max. pasma dla każdego użytkownika, oraz całkowitego pasma.
Z góry dziękuję za pomoc.
Edit:
OK mam takie coś, będzie działać?
0 0 * * * /sbin/uci set qos_gargoyle.@download[0].total_bandwidth=8000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. min_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. min_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. max_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. max_bandwidth=4000 ; /etc/init.d/qos_gargoyle reload>/dev/null 2>&1
30 7 * * * /sbin/uci set qos_gargoyle.@download[0].total_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. min_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. min_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. max_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. max_bandwidth=2000 ; /etc/init.d/qos_gargoyle reload>/dev/null 2>&1
0 14 * * * /sbin/uci set qos_gargoyle.@download[0].total_bandwidth=8000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. min_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. min_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. max_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. max_bandwidth=4000 ; /etc/init.d/qos_gargoyle reload>/dev/null 2>&1
0 18 * * * /sbin/uci set qos_gargoyle.@download[0].total_bandwidth=4000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. min_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. min_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_1[0]. max_bandwidth=2000 && /sbin/uci set qos_gargoyle.@dclass_2[0]. max_bandwidth=2000 ; /etc/init.d/qos_gargoyle reload>/dev/null 2>&1