Sebastian

At 01:39 11.08.2003 -0300, you wrote:
>You probably could have done that with just specifying another download
>method in the lrp.conf file. If that is not possible, would you mind to
>tell me what you needed to modify. I believe the rload script could be
>sufficiently abstract to cover most trivial download methods.


Well here i send to you the script i modified to use under ftp. I make more easy the lrp.conf (for me i think).

----------------------------------------------------------------------------
-------------------------------------------
#!/bin/sh
#
# this script fetches a number of LEAF packages from a central server
# and installs them using lrpkg -i

# Copyleft 2003 Erich Titl ([EMAIL PROTECTED])
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.


RCDLINKS="2,S15"


. /etc/lrp.conf

PACKAGE_LIST=/var/lib/lrpkg/packages
INSTALLED_PACKAGES=`cat ${PACKAGE_LIST}`
INIT="/sbin/telinit 3"
RCLINK_UPDATE="/usr/sbin/update-rc.d -a -f -w -v"

fetch_and_install_lrp(){
        SOURCE=${RLOAD_USER}${RLOAD_HOST}
        ${RLOAD_PROGRAM} ${RLOAD_PROGRAM_PARAMS}
ftp://$RLOAD_USER:[EMAIL PROTECTED]/$1.lrp ${RLOAD_DEST_
        ${RLOAD_INSTALL_PROGRAM} ${RLOAD_INSTALL_PROGRAM_PARAMS} /tmp/$1
}

Mhhh , I guess you still use wget to fetch the files from the server, I guess you could have used the RLOAD_SOURCE_DIR convenience parameter to squeeze in all the information needed for the transfer. I suggest to change the lrp.conf file to


RLOAD_SOURCE_DIR=ftp://$RLOAD_USER:[EMAIL PROTECTED]

then the original rload script should work.

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/psa00100003ave/direct;at.aspnet_072303_01/01 ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to