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

How to script PFIFO into startup?

Discussion in 'Tomato Firmware' started by kardzzz, Dec 15, 2008.

  1. kardzzz

    kardzzz Addicted to LI Member

    Hi, I run quite a lot of P2P and have seen good improvement with the nvram set qos_pfifo=1 funtion via telnet.
    My Question is how do I setup a script to run this procedure on a reboot? I have tried adding the following to 'Wan Up' but it doesn't work
    [ `nvram get qos_pfifo` -eq 0 ] && (nvram set qos_pfifo=1;nvram commit;service qos restart)

    I'm running WRT54GL 1.1 with Original Tomato 1.23

  2. Kiwi8

    Kiwi8 LI Guru Member

    Once u run "NVRAM commit" the changes should have been updated to NVRAM and after reboot they should still be there.
  3. nvtweak

    nvtweak LI Guru Member

    What do you mean it doesn't work?

    I agree with Kiwi. Once you commit this variable, it should stay. Checking it after every wanup event is unnecessary.

    Check that it works by

    nvram get qos_pfifo

    If not, do it manually

    nvram set qos_pfifo=1
    nvram commit
    reboot or service qos restart
  4. Toastman

    Toastman Super Moderator Staff Member Member

    I use this in my firewall script:

    nvram set qos_pfifo=1
  5. kardzzz

    kardzzz Addicted to LI Member

    Toastman, That works perfectly; Now I just need to type that into the firewall whenever I upgrade to a new version.
  6. Toastman

    Toastman Super Moderator Staff Member Member

    It would be more elegant in startup, did you try it?

    That would be a nice mod for somebody to add to the GUI !
  7. Victek

    Victek Network Guru Member

    Done in Tomato RAF 1.23.8020 test version (Advanced/QoS) :)

Share This Page