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

How I use JFFS2 contest....

Discussion in 'Tomato Firmware' started by jsmiddleton4, Jun 21, 2008.

  1. jsmiddleton4

    jsmiddleton4 Network Guru Member

    I have enough ram not being used that I can enable and format the jffs2 option. Question is why? How do folks use this partition/storage space?
  2. fyellin

    fyellin LI Guru Member

    Most of tomato's file system is either RO or is rebuilt from scratch every time you reboot. /jffs is the one place you can put your stuff that survives a reboot.

    So I use it to put various web pages, that I then copy to /var/wwwext at startup.

    If you have shell scripts, you can store them there.
  3. jsmiddleton4

    jsmiddleton4 Network Guru Member

    I was wondering about the time server idea as well. But for us "Routers for dummies" the steps would have to be clearly spelled out as to how to send things into the jffs2 partition and, how to access them and how to run them.

    Also I was wondering about the ad blocking dns poison script thing and having a graphic image stored in jffs2 that users can upload to it, an image that would display when an ad is blocked.
  4. mstombs

    mstombs Network Guru Member

    see my brief instructions in here


    My current jffs ...

    # ls -laF /jffs
    drwxr-xr-x    1 root     root            0 Jan  1  1970 ./
    drwxr-xr-x   15 root     root          183 Apr 20 20:11 ../
    -rw-r--r--    1 root     root        74638 Apr 25 20:23 adblock.conf
    -rwxr-xr-x    1 root     root          157 Sep 23  2007 autoexec.sh*
    -rwxr-xr-x    1 root     root          854 Oct 12  2007 bootmsg.sh*
    -rwxr-xr-x    1 root     root          234 Feb  6 22:22 getadblock.sh*
    -rwxr-xr-x    1 root     root        96836 May 16  2007 msmtp*
    -rwxr-xr-x    1 root     root         7155 Sep 23  2007 nvramshow.asp*
    -rwxr-xr-x    1 root     root           51 Feb 28 11:39 opendns.resolv*
    -rwxr-xr-x    1 root     root          308 Sep 21  2007 wanswitch.sh*
    At one time the router sent me an email everytime it booted or WAN IP changed... currently the autoexec.sh just adds the nvramshow page to the gui (by linking not copying to ram disk).

    # cat /jffs/autoexec.sh
    logger "jffs autoexec running"
    # add extra web screen to show nvram contents
    mkdir /var/wwwext
    ln -s /jffs/nvramshow.asp /var/wwwext/nvramshow.asp

Share This Page