Hello, The topic say pretty much everything that i need. I really have no experience in writing script but i guess it should be pretty basic. IF 00:11:22:33:44:55 is connected then qos start else qos stop Edit : Here's what i came up with: Code: if wl assoclist | grep 00:11:22:33:44:55 = 'assoclist 00:11:22:33:44:55' then service qos start else service qos stop fi How can i check if service is not already started/stoped before starting/stoping it again ? OR should i better switch the qos with Code: nvram set qos_enable=1/0 ? Then i could just check if it's already enabled/disabled with Code: nvram get qos_enable Could a little more experienced user give me an advise on this ?