|
||||||||
Am 16.03.2005 8:57 Uhr schrieb "Claude Morin" unter <klodefactor at gmail dot com>: > HI Claude, > > The last list message I mentioned, about modifying "loader.rc", *did* > work at the time. My brother was the poster, so I'm certain he's not > mistaken. I did mention that the technique is only useful for files > that *aren't* in the compressed image. > ---------------- > -- you¹re right > ---------------- > As I understand things, using <shellcmd> in your .XML config file is > the only easy way to do what Max wants. The alternative is using > FreeSBIE, Knoppix (Linux live CD), or a FreeBSD or Linux system > running off a hard drive, to uncompress the filesystem image, mount > it, modify, recompress, etc. > ------------------------------- > -- so it is...!! > -- you¹ll find a detailed description on repacking a m0n0wall image here: > -- http://m0n0.ch/wall/hack/ > -- which is an excellent description from Rudi van Drunen > ---------------------------------------------------------------- > -klode > > On Tue, 15 Mar 2005 13:36:46 +0100, Claude Hecker > <claude dot hecker at phoenix dash mecano dot com> wrote: >> > Hi Max, >> > >> > This is not the right way.. >> > Because the filesystem at boottime is stored in an image file >> > which is named mfsroot.gz, but u can change in that way configs .. etc >> > >> > Am 15.03.2005 13:24 Uhr schrieb "Max Khitrov" unter <maximkh at yahoo dot com >: >> > >>> > > You're talking about this, right? >>> > > umount /cf >>> > > mount /dev/ad0a /cf # <-- or whatever your boot device is >>> > > cp /cf/boot/loader.rc /cf/boot/loader.rc.temp >>> > > echo "set console=comconsole" > /cf/boot/loader.rc >>> > > cat /cf/boot/loader.rc.temp >> /cf/boot/loader.rc >>> > > rm /cf/boot/loader.rc.temp >>> > > sync # <-- i'm paranoid (a reboot should >>> > > umount /cf # <-- really paranoid do these anyway) >>> > > >>> > > Does this mean that we can make changes to the image that are permanent >>> > > directly from the exec.php? (Why is this undocumented?!?!) >>> > > >>> > > If we can mount the hard drive partition in read/write mode, then we >>> > > can just download any files we need, edit them, then re-upload. Is that >>> > > about right? >>> > > >>> > > --- Claude Morin <klodefactor at gmail dot com > wrote: >>>>> > >> > You can always do something sleazy and create and invoke the script >>>>> > >> > at >>>>> > >> > boot time, using the <shellcmd> section of the XML file. See this >>>>> > >> > list message for details: >>>>> > >> > >>> > > http://m0n0.ch/wall/list/?action=show_msg%5B%5D=135%5B%5D=62 >>> > > >>> <http://m0n0.ch/wall/list/?action=show_msg&actionargs%5B%5D=135&actionargs%5B% >>> > > 5D=62> >>>>> > >> > >>>>> > >> > BTW, you don't need to install a FreeBSD system if you decide you >>>>> > >> > want >>>>> > >> > to create a modified image the "normal" way. All the hard work has >>>>> > >> > already been done for you: the latest FreeSBIE >>>>> > >> > (http://www.freesbie.org/ ) is a live-bootable CD based on FreeBSD >>>>> > >> > 5.3, >>>>> > >> > and should (untested :-) do the trick. >>>>> > >> > >>>>> > >> > For mods which don't require changes to the compressed image, you >>>>> > >> > could try the technique suggested at the end of this list message: >>>>> > >> > >>> > > http://m0n0.ch/wall/list/?action=show_msg%5B%5D=68%5B%5D=08 >>> > > >>> <http://m0n0.ch/wall/list/?action=show_msg&actionargs%5B%5D=68&actionargs%5B%5 >>> > > D=08> >>>>> > >> > >>>>> > >> > Start reading at "truthfully"; the commands for exec.php start at >>>>> > >> > "umount". Looks interesting; haven't tried it myself. >>>>> > >> > >>>>> > >> > -klode >>>>> > >> > >>>>> > >> > On Mon, 14 Mar 2005 05:00:36 -0800 (PST), Max Khitrov >>>>> > >> > <maximkh at yahoo dot com > wrote: >>>>>>> > >>> > > Well you'd still have to put that script into the image, or else >>>>> > >> > it'll >>>>>>> > >>> > > get erased every restart. Since I don't have a FreeBSD system, I >>>>> > >> > hope >>>>>>> > >>> > > Manuel would consider adding this to the official image. >>>>>>> > >>> > > >>>>>>> > >>> > > --- Chris Dionissopoulos <dionch at freemail dot gr > wrote: >>>>>>>>> > >>>> > > > Yes it's easy. (php + pcre needed). >>>>>>>>> > >>>> > > > >>>>>>>>> > >>>> > > > Just set the required variables at the start , save, >>>>>>>>> > >>>> > > > and run something like: >>>>>>>>> > >>>> > > > >>>>>>>>> > >>>> > > > php -f eDNS.phps >>>>>>>>> > >>>> > > > >>>>>>>>> > >>>> > > > Enjoy. >>>>>>>>> > >>>> > > > >>>>>>>>> > >>>> > > > Chris. >>>>>>> > >>> > > >>>>>>> > >>> > > >>>>> > >> > >>>>> --------------------------------------------------------------------- >>>>>>> > >>> > > To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch >>>>>>> > >>> > > For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch >>>>>>> > >>> > > >>>>>>> > >>> > > >>>>> > >> > >>>>> > >> > >>>>> > >> > -- >>>>> > >> > Claude >>>>> > >> > >>> > > >>> > > --------------------------------------------------------------------- >>> > > To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch >>> > > For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch > |