I am newbie to this. I have got dd-wrt , installed and configured in my router.

dd-wrt version : DD-WRT v24-sp2 (08/07/10) router version : D-Link DIR 600

I am trying setup bandwidth usage monitoring script in it.

Is there any way , I can store details in router , without getting deleted on reboot ?

I mean is there some kind of persistent storage I can get ?

Thanks
J

link|improve this question
As far as I remember, DD-WRT splits the flash into part for the read-only partition with the system that gets loaded into RAM and decompressed and then used and a small part used for settings storage that could be written to. You could try using that for as storage space. The problem comes up if you need to install an additional program to the router to do the monitoring because there will be little space left. When I had such a problem, in the end I had to move to OpenWRT which doesn't use read-only filesystem. – AndrejaKo Jan 20 at 8:19
feedback

3 Answers

There should be nvram (i.e. non-volatile ram).

nvram show            # list all variables
nvram get name        # get variable
nvram set name=value  # set variable
nvram unset name      # delete variable
link|improve this answer
feedback

There is a small space that you can use. I don't know exactly because I didn't look up your router's specs. When you set a cron job you are writing to the filesystem are you not? I would SSH in and check out the /var directory. If you have a usb port you could place your log files there. Just be sure in your script to delete the logs once they get a certain size or your router will die.

This might interest you http://www.dd-wrt.com/wiki/index.php/Useful_Scripts or this forum thread. http://www.dd-wrt.com/phpBB2/viewtopic.php?t=81432

link|improve this answer
feedback

Usually there is some space you can use. For example read this answer: http://stackoverflow.com/questions/451638/list-free-flash-space-on-wrt54gl-with-dd-wrt-v24sp1-firmare. In my WAG200G I formated mtd2 or mtd3 for my purpose. But you need to be sure which flash block you can use otherwise you can turn your device to a brick.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.