From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 0eccedd1c8340e186a8329f66a235aea6c92b1af
Date: Mon, 26 Feb 2018 11:12:49 +0000 [thread overview]
Message-ID: <20180226111249.9374D106D063@git01.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2908 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 0eccedd1c8340e186a8329f66a235aea6c92b1af (commit)
from 39d11d265e4f1a41994d0adf85498f54c63ba7ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0eccedd1c8340e186a8329f66a235aea6c92b1af
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Feb 26 11:12:20 2018 +0000
dhcp: Allow adding extra DHCP interfaces
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
config/rootfiles/core/120/filelists/files | 1 +
src/initscripts/system/dhcp | 8 +++++---
2 files changed, 6 insertions(+), 3 deletions(-)
Difference in files:
diff --git a/config/rootfiles/core/120/filelists/files b/config/rootfiles/core/120/filelists/files
index 936945359..57475b167 100644
--- a/config/rootfiles/core/120/filelists/files
+++ b/config/rootfiles/core/120/filelists/files
@@ -1,6 +1,7 @@
etc/system-release
etc/issue
etc/fcron.daily/openvpn-crl-updater
+etc/rc.d/init.d/dhcpd
srv/web/ipfire/cgi-bin/ovpnmain.cgi
var/ipfire/langs
var/ipfire/ovpn/openssl/ovpn.cnf
diff --git a/src/initscripts/system/dhcp b/src/initscripts/system/dhcp
index 2ae86db31..d98229564 100644
--- a/src/initscripts/system/dhcp
+++ b/src/initscripts/system/dhcp
@@ -8,6 +8,8 @@
. /etc/sysconfig/rc
. $rc_functions
+[ -e "/etc/sysconfig/dhcpd" ] && . /etc/sysconfig/dhcpd
+
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
eval $(/usr/local/bin/readhash /var/ipfire/dhcp/settings)
@@ -23,20 +25,20 @@ case "$1" in
flush_chains
if [ -n "${GREEN_DEV}" -a -e "/var/ipfire/dhcp/enable_green" ]; then
- devices="${GREEN_DEV}"
+ LISTEN_INTERFACES+=" ${GREEN_DEV}"
iptables -A DHCPGREENINPUT -i "${GREEN_DEV}" -j DHCPINPUT
iptables -A DHCPGREENOUTPUT -o "${GREEN_DEV}" -j DHCPOUTPUT
fi
if [ -n "${BLUE_DEV}" -a -e "/var/ipfire/dhcp/enable_blue" ]; then
- devices+=" ${BLUE_DEV}"
+ LISTEN_INTERFACES+=" ${BLUE_DEV}"
iptables -A DHCPBLUEINPUT -i "${BLUE_DEV}" -j DHCPINPUT
iptables -A DHCPBLUEOUTPUT -o "${BLUE_DEV}" -j DHCPOUTPUT
fi
boot_mesg "Starting DHCP Server..."
- loadproc /usr/sbin/dhcpd -q ${devices}
+ loadproc /usr/sbin/dhcpd -q ${LISTEN_INTERFACES}
# Start Unbound DHCP Lease Bridge unless RFC2136 is used
if [ "${DNS_UPDATE_ENABLED}" != on ]; then
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2018-02-26 11:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180226111249.9374D106D063@git01.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox