[dhcp] Add DHCRELAYARGS variable to /etc/sysconfig/dhcrelay

Jiří Popelka jpopelka at fedoraproject.org
Fri Aug 20 15:39:09 UTC 2010


commit 027db6fe991fa49228746f26e25130b114f71233
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Fri Aug 20 17:10:04 2010 +0200

    Add DHCRELAYARGS variable to /etc/sysconfig/dhcrelay

 dhcp.spec     |    8 +++++++-
 dhcrelay.init |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/dhcp.spec b/dhcp.spec
index 76ed456..ed222ec 100644
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -7,7 +7,7 @@
 Summary:  Dynamic host configuration protocol software
 Name:     dhcp
 Version:  4.2.0
-Release:  2%{?dist}
+Release:  3%{?dist}
 # NEVER CHANGE THE EPOCH on this package.  The previous maintainer (prior to
 # dcantrell maintaining the package) made incorrect use of the epoch and
 # that's why it is at 12 now.  It should have never been used, but it was.
@@ -323,7 +323,10 @@ touch %{buildroot}%{_localstatedir}/lib/dhcpd/dhcpd6.leases
 
 %{__cat} << EOF > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay
 # Command line options here
+DHCRELAYARGS=""
+# DHCPv4 only
 INTERFACES=""
+# DHCPv4 only
 DHCPSERVERS=""
 EOF
 
@@ -504,6 +507,9 @@ fi
 %attr(0644,root,root) %{_mandir}/man3/omapi.3.gz
 
 %changelog
+* Fri Aug 20 2010 Jiri Popelka <jpopelka at redhat.com> - 12:4.2.0-3
+- Add DHCRELAYARGS variable to /etc/sysconfig/dhcrelay
+
 * Fri Jul 30 2010 Jiri Popelka <jpopelka at redhat.com> - 12:4.2.0-2
 - Add 12-dhcpd NM dispatcher script (#565921)
 - Rename 10-dhclient to 11-dhclient (10-sendmail already exists)
diff --git a/dhcrelay.init b/dhcrelay.init
index e0094ce..33bad2c 100644
--- a/dhcrelay.init
+++ b/dhcrelay.init
@@ -58,7 +58,7 @@ start() {
     rh_status_q && return 0
 
     echo -n $"Starting $prog: "
-    daemon $exec $([ -n "$INTERFACES" ] && for int in $INTERFACES ; do echo -n " -i $int" ; done) $DHCPSERVERS 2>/dev/null
+    daemon $exec $DHCRELAYARGS $([ -n "$INTERFACES" ] && for int in $INTERFACES ; do echo -n " -i $int" ; done) $DHCPSERVERS 2>/dev/null
     RETVAL=$?
     echo
     [ $RETVAL -eq 0 ] && touch $lockfile


More information about the scm-commits mailing list