You're talking about this, right?
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
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
--- Claude Morin <klodefactor at gmail dot com> wrote:
> You can always do something sleazy and create and invoke the script
> boot time, using the <shellcmd> section of the XML file. See this
> list message for details:
> BTW, you don't need to install a FreeBSD system if you decide you
> 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
> 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:
> Start reading at "truthfully"; the commands for exec.php start at
> "umount". Looks interesting; haven't tried it myself.
> 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
> > get erased every restart. Since I don't have a FreeBSD system, I
> > 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