From a6183886615a6aec065c383b9604ba2a0c0499e4 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Dec 2009 05:58:17 +0000 Subject: [PATCH] Fized problem with slow tftpd boot --- stage3/cis-tftp-hpa | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/stage3/cis-tftp-hpa b/stage3/cis-tftp-hpa index 1f80e38..987a8b9 100755 --- a/stage3/cis-tftp-hpa +++ b/stage3/cis-tftp-hpa @@ -1,27 +1,33 @@ #!/bin/sh # First argument of this script is the package name. +# Remaining arguments are additional configure options. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list +PACKAGE=${1} +shift +CONFIGURE_OPTS=${*} + # Applying patches (if any) -apply_patches ${1} && +apply_patches ${PACKAGE} && -# For packages that don't compile well from a separate build directory. -cd ${LFS_TMP}/${1} && +cd ${LFS_TMP}/${PACKAGE} && ./configure \ --prefix=/usr \ - --sysconfdir=/etc && + --sysconfdir=/etc \ + --without-tcpwrappers \ + ${CONFIGURE_OPTS} && make && make install && -ldconfig && +ldconfig mkdir -v -p /srv/tftpboot && # Addition to /etc/inetd.conf -string_add "tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot" /etc/inetd.conf +string_add "tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf # Return last error exit $? -- 2.20.1