OpenWrt Forum Archive

Topic: Editing scripts and moving to OpenWRT from DD-WRT

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, i'm looking at OpenWRT and moving away from DD-WRT. Under DD-WRT i wanted to edit some scripts (ip-up for the pptp client) but as  they exist in /tmp they are only in memory.

If i move to OpenWRT will i get a /etc/ directory like a normal linux system that is saved to flash, i have used embedded snapgear linux before but i dont want to rebuild the source just to edit scripts. Will OpenWRT be more flexible in this regard?

thanks for the advice, i look forward to becoming a OpenWRT user

Sounds like you'll love OpenWrt.  In short, RO (squashfs) and RW (jffs) filesystems automagically behave like you were editing a harddisk.  Even better, the RO version of any file is still available (in /rom) as is a nice snapshot of all added/edited files (in /jffs).  If you have 4M flash it'll seem huge compared to DD-WRT.

(Last edited by Bill_MI on 30 Jun 2007, 03:23)

OpenWrt is basically designed to look like a pc running debian.

The filesystem is a Copy-On-Write (COW) scheme, composed of two filesystems, the readonly squashfs filesystem in /rom, and the writable jffs2 filesystem on /jffs, combined into a virtual /. Any attempt to open a file with write permissions will result in the file being created or copied to the matching directory under /jffs, all transparent to the user.

More detail -> http://forum.openwrt.org/viewtopic.php?id=11304

Thanks guys big_smile

i have had some issues with dd-wrt and pptp client being stuck in stone and almost unmodifiable, i want to mess around with the scripts directly.

As a development box can i bung an sd card onto my unit and get megabytes of flash, is this supported on OpenWRT? I just read:

- mount_root mounts the jffs2 partition (/jffs) and combines it with the squashfs partition (/rom) to create a new virtual root filesystem (/)

:3D i hope that means what i think it means :3)

One final thing, how easy is wifi to configure via scripts? I wish to run wireless client bridge to my lan as per my dd-wrt box.

I will need to build blueprint units at some point, but then i can go and recompile the build and create a custom image, in the meantime at least i can develop with ease!

Thanks

The discussion might have continued from here.