From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH 1/4] dhcp: always install the config files
Date: Sun, 20 Jun 2021 19:10:43 +0200 [thread overview]
Message-ID: <20210620171046.25968-1-rhi@pengutronix.de> (raw)
install_alternative already looks for the config files in various
places, there is no need for kconfig switches here. These options are
probably a leftover from the very early years of PTXdist.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
rules/dhcp.in | 33 ---------------------------------
rules/dhcp.make | 9 ---------
2 files changed, 42 deletions(-)
diff --git a/rules/dhcp.in b/rules/dhcp.in
index 7e609f74d432..7eefb16c6414 100644
--- a/rules/dhcp.in
+++ b/rules/dhcp.in
@@ -28,17 +28,6 @@ config DHCP_SERVER
It takes its configuration from /etc/dhcp3/dhcpd.conf and tracks
issued addresses as records in the dhcpd.leases file.
-config DHCP_DHCPD_CONF
- bool "Install /etc/dhcpd.conf"
- depends on DHCP_SERVER
- default y
- help
- Installs (if present) the "./projectroot/etc/dhcpd.conf"
- file from your workspace, otherwise a generic one from the
- ptxdist installation
- ("<PTXDIST>/projectroot/etc/dhcpd.conf").
-
-
config DHCP_CLIENT
bool
prompt "DHCP Client dhclient"
@@ -47,28 +36,6 @@ config DHCP_CLIENT
with an IP address. It also handles a lease refresh if it
expires.
-if DHCP_CLIENT
-
-config DHCP_DHCLIENT_CONF
- bool "Install /etc/dhclient.conf"
- default y
- help
- Installs (if present) the "./projectroot/etc/dhclient.conf"
- file from your workspace, otherwise a generic one from the
- ptxdist installation
- ("<PTXDIST>/projectroot/etc/dhclient.conf").
-
-config DHCP_DHCLIENT_SCRIPT
- bool "Install /etc/dhclient-script"
- depends on DHCP_DHCLIENT_CONF
- help
- Installs (if present) the "./projectroot/etc/dhclient-script"
- file from your workspace, otherwise a generic one from the
- ptxdist installation
- ("<PTXDIST>/projectroot/etc/dhclient-script").
-
-endif
-
config DHCP_RELAY
bool
prompt "DHCP Relay dhcrelay"
diff --git a/rules/dhcp.make b/rules/dhcp.make
index 48ff6f0d2007..7feb6ef5b668 100644
--- a/rules/dhcp.make
+++ b/rules/dhcp.make
@@ -93,9 +93,6 @@ $(STATEDIR)/dhcp.targetinstall:
ifdef PTXCONF_DHCP_SERVER
@$(call install_copy, dhcp, 0, 0, 0755, -, \
/usr/sbin/dhcpd)
-endif
-
-ifdef PTXCONF_DHCP_DHCPD_CONF
@$(call install_alternative, dhcp, 0, 0, 0644, /etc/dhcpd.conf)
endif
@@ -106,13 +103,7 @@ ifdef PTXCONF_DHCP_CLIENT
@$(call install_copy, dhcp, 0, 0, 0755, -, \
/usr/sbin/dhclient)
-endif
-
-ifdef PTXCONF_DHCP_DHCLIENT_SCRIPT
@$(call install_alternative, dhcp, 0, 0, 0755, /etc/dhclient-script)
-endif
-
-ifdef PTXCONF_DHCP_DHCLIENT_CONF
@$(call install_alternative, dhcp, 0, 0, 0644, /etc/dhclient.conf)
endif
--
2.29.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next reply other threads:[~2021-06-20 17:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-20 17:10 Roland Hieber [this message]
2021-06-20 17:10 ` [ptxdist] [PATCH 2/4] dhcp: set reasonable default options Roland Hieber
2021-06-25 7:57 ` Michael Olbrich
2021-06-20 17:10 ` [ptxdist] [PATCH 3/4] dhcp: warn in the menu if nothing is installed into the rootfs Roland Hieber
2021-06-25 7:58 ` Michael Olbrich
2021-06-26 20:16 ` Roland Hieber
2021-06-28 6:22 ` Michael Olbrich
2021-06-29 5:09 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-20 17:10 ` [ptxdist] [PATCH 4/4] dhcp: sync config files with upstream examples Roland Hieber
2021-06-29 5:09 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-29 5:09 ` [ptxdist] [APPLIED] dhcp: always install the config files Michael Olbrich
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=20210620171046.25968-1-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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