Adding files to NVRAM on 1.28

Discussion in 'Tomato Firmware' started by neurolysis, Jan 25, 2011.

  1. neurolysis

    neurolysis Networkin' Nut Member

    I'm wanting to add files to nvram, people seem to recommend the following command:

    Code:
    nvram setfile2nvram
    ...however, 'setfile2nvram' does not appear to be a valid option for nvram. What's up with that?
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    nvram set xxxxxxx
     
  3. mstombs

    mstombs Network Guru Member

    Stock Tomatomato 1.28 has

    which stores and retrieves as base64 encoded files - should not be used for anything but very small as this expands the file.

    setfile2nvram is available in tomatousb mod.

    Need to check sourcecode, but I believe these just escape illegal characters so use less nvram space than base64. I guess setfile2nvram auto restores the file to the source location after router boot, the other commands will need associated script functions to do it manually.
     
  4. Toastman

    Toastman Super Moderator Staff Member Member

    Aha my apologies...
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice