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

where is the init script ?

Discussion in 'Sveasoft Firmware' started by raptor, Oct 11, 2004.

  1. raptor

    raptor Network Guru Member


    I want ot execute some code on every reboot, where to place it.. so that it is saved over reboots ? (rc.start)
    I want to delete a route and add iptable-nat on every reboot..not doing it manualy every time..
  2. grcore

    grcore Network Guru Member

    nvram variable rc_startup and rc_firewall
  3. raptor

    raptor Network Guru Member


    i'm setting them but when i restart nothing is saved
    Anything else to be done so that it stays in nvram !!

  4. llama

    llama Guest

    Just to be complete

    nvram commit

    will save your settings.
  5. davidsonf

    davidsonf Network Guru Member

    Re: ??

    Read the thread titled "Custom cron job how?" in this forum (sveasoft firmware) for a detailed explanation of how it works. My description was somewhat flawed though, as far as examples go, so if it doesn't make sense after you have seen to the two followups, ask more questions!

Share This Page