1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

script that turns on/off qos when MAC is connected/disconnected

Discussion in 'Tomato Firmware' started by BXCracer, Apr 10, 2009.

  1. BXCracer

    BXCracer Addicted to LI Member

    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:

    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
    How can i check if service is not already started/stoped before starting/stoping it again ?
    OR should i better switch the qos with
    nvram set qos_enable=1/0
    Then i could just check if it's already enabled/disabled with
    nvram get qos_enable
    Could a little more experienced user give me an advise on this ?
  2. mactogo

    mactogo Addicted to LI Member

    I'd just like to revive this thread. Any updates to this? Anyone here know how to formulate a script that activates qos when a specific ip or mac address is connected or maybe even when x number of devices are connected, and deactivates it when not? I just think it may be a useful tool to have.

Share This Page