From 4189ba07b10146b82e42756c9c03948f951fdeff Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 13 Oct 2008 19:42:58 +0000 Subject: [PATCH] -Only do multicast if user exhibits desire to do so, keeps QS blades booting sanely in moderately complex environments without sane multicast configuration --- atftp/atftp.spec | 2 +- atftp/tftpd | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/atftp/atftp.spec b/atftp/atftp.spec index 0075afa..e674d86 100644 --- a/atftp/atftp.spec +++ b/atftp/atftp.spec @@ -2,7 +2,7 @@ Name: atftp Summary: Advanced Trivial File Transfer Protocol (ATFTP) - TFTP server Group: System Environment/Daemons Version: 0.7 -Release: 7 +Release: 8 License: GPL Vendor: Linux Networx Inc. Source: atftp_0.7.dfsg.orig.tar.gz diff --git a/atftp/tftpd b/atftp/tftpd index c3b42d3..1483918 100755 --- a/atftp/tftpd +++ b/atftp/tftpd @@ -11,6 +11,9 @@ # Description: ATFTP server ### END INIT INFO +if [ -r /etc/sysconfig/atftpd ]; then + . /etc/sysconfig/atftpd +fi RHSuccess() { @@ -53,6 +56,7 @@ else echo "Error, don't know how to start on this platform" exit 1 fi +MULTARG="--no-multicast" case $1 in restart) @@ -72,7 +76,10 @@ stop) ;; start) echo -n "Starting ATFTP " - $START_DAEMON /usr/sbin/atftpd --group nobody --daemon && $LOG_SUCCESS || $LOG_FAILURE + if [ "$ATFTPMULTICAST" == "yes" ]; then + MULTARG="" + fi + $START_DAEMON /usr/sbin/atftpd $MULTARG --group nobody --daemon && $LOG_SUCCESS || $LOG_FAILURE ;; esac