Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27

Thread: nvram, nvram_x

  1. #16

    Nvram.

    I have a lama question to ask. I got a Asus 500g and I would like to do following changes 16_x_FIsFtpServer=0, wan_ifname=ppp0. I have used nvram set wan_ifname=ppp0; nvram commit. However, I still get old values after reboot. Can anyone tell me where I make a mistake? Is it hard coded somewhere without a change to change it?

    Best regards
    Jamie Poz.

  2. #17

    Saving nvram value

    Hi,

    I would like to know if every setting I can set up on Oleg's firmware is set in nvram value, and if so, is it possible to do a manual backup and restore.

    I would like to go back from a mixed state configuration set and also to do a kind of configuration switch?

  3. #18
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Everything accessible via web interface is stored in the nvram.

  4. #19
    but how can you make a backup restore in one operation? Do I have to script the nvram command, or can I use a /dev/mtd in some way?

  5. #20
    after searching, there is some info about nvram_x, but this utility looked buggy and does'nt exist anymore. Do I have to script all value to save and restore nvram, or is there a new command to do so?

  6. #21
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Just use built-in save/restore configuration function. I think this should be enough for you.

  7. #22
    yes, but it doesn't work on Wl-Hdd. I get a WLHDD.cfg file with 0k size.

    On wl500 version (when I was testing it before your actual version for wl hdd), it was working.

    Also, this method ask for a browser. I would need a telnet way, as I will be using non standard browsers.

  8. #23
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Well, you can play dangerous game with nvram then:
    Code:
    cat /dev/mtd/3 > /tmp/nvram.bin
    should backup whole nvram
    Code:
    flash /tmp/nvram.bin /dev/mtd/3
    reboot
    should bring it back.

  9. #24

    Remove from nvram

    Is there a command I can use to remove entries from nvram?

    I have UPnP entries that have been storded to nvram that I would like to remove. I find them with this command:
    Code:
    nvram show | grep forward_port
    I could of course reset to factory default, but I'd rather not...

    S.

  10. #25
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Quote Originally Posted by barsju
    Is there a command I can use to remove entries from nvram?

    I have UPnP entries that have been storded to nvram that I would like to remove. I find them with this command:
    Code:
    nvram show | grep forward_port
    I could of course reset to factory default, but I'd rather not...

    S.
    Code:
    nvram unset var_name
    or smthg similar should work, I believe.

    HTH
    Roofcat

  11. #26
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by RoofCat
    Code:
    nvram unset var_name
    or smthg similar should work, I believe.

    HTH
    Roofcat
    indeed that will work

    also

    Code:
    nvram set var_name
    should work to erase the entry

    after doing this do a commit
    Code:
    nvram commit

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  12. #27
    Thx! That works, and now I'm working on a script like this:
    Code:
    #!/bin/sh
    i=$1
    while [ $i -le $2 ]
    do
            nvram unset  port_forward$i
            i=$i + 1
    done
    but I keep getting
    Code:
    ./clearUPnP: 8: +: not found
    What gives??

    S.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •