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

cru commands

Discussion in 'Tomato Firmware' started by inaninck, Sep 16, 2009.

  1. inaninck

    inaninck Addicted to LI Member

    Hi Tomatoes!

    I have added some entries to "cru" (busybox's version of cron).
    Then, for some reason, I rebooted the Tomato and found my cru entries missing.

    Does this sound familiar? Must something be done to make the settings persistent?

    Thanks in advance for your attention!

    Ivo Naninck
  2. rhester72

    rhester72 Network Guru Member

    It is rebuilt upon reboot.

    To make them permanent, add the necessary cron entries to the end of /tmp/var/spool/cron/crontabs/root via init script.

  3. fyellin

    fyellin LI Guru Member

    To expand upon what rhester72 writes. There is no real file system. There is a fake file system in RAM that gets rebuilt from scratch when you reboot the machine. The only things remembered after a reboot are those things in ROM or NVRAM.

    The simplest scheme is just to add your cru commands to the init script, so they'll get executed every time the machine reboots.

Share This Page