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