This is just GREAT - I got testing of this om my week-end "plan" :-)  I'll
let you all know how it proceedes :-)))

Jorn
----- Original Message -----
From: "Erich Titl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Jørn Eriksen" <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 11:37 AM
Subject: remote package install


Hi everybody

I have a rload.lrp package available for testing purposes. All it requires
it that your network adapters are set up and routing works. This is done by
moving the modules for your network cards to /boot/lib/modules and declare
them in /boor/etc/modules.
Additionally you will have to modify the RCDLINKS parameter in
/etc/init.d/modutils (just in case you are loading modules.lrp too).
The modified parameter looks like:

RCDLINKS="S,S20 3,S15"

Now all you have to add are some parameters in /etc/lrp.conf, add rload to
syslinux.cfg or lrpkg.cfg and you are done. Here is an example using wget
to download the additional packages. Originally I used scp but this is just
a bit too big to fit on a small floppy.


#################################################
# Extensions for the rload function
# please modify to suit your needs
# copyleft 2003 Erich Titl [EMAIL PROTECTED]

RLOAD_USER=mega                                 # if you need a username
provide it here
RLOAD_PROGRAM=/usr/bin/wget               # the program to tranfer your data
RLOAD_PROGRAM_PARAMS=""               # parameters for the transfer program
RLOAD_HOST=194.124.158.50                   # hostname or IP address
RLOAD_DIR=leaf/firewall                             # the source directory
almost like a URL
RLOAD_SOURCE_DIR=http://${RLOAD_HOST}/${RLOAD_DIR}       # composite for
convenience
RLOAD_INSTALL_PROGRAM="/usr/sbin/lrpkg"         # the program used to unpack
RLOAD_INSTALL_PROGRAM_PARAMS=-i               # parameters for your unpack
program
RLOAD_EXIT_HOOKS=                                            # call some
cleanup script here
RLOAD_DEST_DIR=/tmp                                          # the
destination dir
RLOAD_DEST_PARAMS=-O
RLOAD_PACKAGE_LIST=ssh,sshd,mawk,libz,shorwall,ipsec,iptables,modules,wget

Of course you need a server located somewhere which hold your packages. You
can use my modified backup script to upload your customised packages or
just any other copy method.

Here is a brief description how rload works.

By installing the package the rload script gets installed in /etc/inid.d
and a link gets created in /etc/rc2.d. This script runs at position 15 in
init level 2 and downloads all you specify in lrp.conf. The packages are
unpacked and the necessary links in the /etc/rc.x directories are
recreated. Then the system is forced to init level 3 where all packages
that require initialisation are started. The difference being is that your
firewall now runs at init level 3 rather than 2.

Comments welcome
Have fun

Erich

THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16






-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to