Gargoyle router firmware using hardware buttons to control qos

config button 'qos_button'
	option button 'wps'
	option action 'pressed'
	option handler 'logger qos ; sed -i 's/2940/25000/' /etc/config/qos_gargoyle ; /etc/init.d/qos_gargoyle restart ;'

config button 'qos2_button'
	option button 'wps'
	option action 'released'
	option handler 'logger qos ; sed -i 's/25000/2940/' /etc/config/qos_gargoyle ; /etc/init.d/qos_gargoyle restart ;'
	option min '3'
	option max '90'

This two line are from “/etc/config/system” file, you can change the “/2940/250000/” values as your two factor bandwidth options.When you press the wps button it will change the qos total download bandwidth value to 25000 and then it will restart qos service.Same thing goes for other but that will need to press and hold the wps button min. 3 seconds to execute that second script line.

Happy QoS’ing.


Yayımlandı

kategorisi

yazarı:

Etiketler:

Yorumlar

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir