summaryrefslogtreecommitdiffstats
path: root/rules/dhcp.in
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-05-29 09:50:34 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-05-29 09:50:34 +0000
commitaea0fb0f148bdc4ad1e46b5d3697b7acb901977e (patch)
treed66c89a4d98f834d6300883cb2c2a957d2d5577b /rules/dhcp.in
parent0dc4fb01f24e7ba3eddf38e293eabd51ffdf4241 (diff)
downloadptxdist-aea0fb0f148bdc4ad1e46b5d3697b7acb901977e.tar.gz
ptxdist-aea0fb0f148bdc4ad1e46b5d3697b7acb901977e.tar.xz
[dhcp] cleanups + add install alternative for config files
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10605 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/dhcp.in')
-rw-r--r--rules/dhcp.in54
1 files changed, 29 insertions, 25 deletions
diff --git a/rules/dhcp.in b/rules/dhcp.in
index a4909c49d..2ffc9ac9a 100644
--- a/rules/dhcp.in
+++ b/rules/dhcp.in
@@ -22,6 +22,17 @@ config DHCP_SERVER
help
FIXME
+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>/generic/etc/dhcpd.conf").
+
+
config DHCP_CLIENT
bool
prompt "DHCP Client dhclient"
@@ -30,34 +41,27 @@ config DHCP_CLIENT
with an IP adress. It also handles a lease refresh if it
expires.
-config DHCP_CLIENT_CONFIG
- bool
- depends on DHCP_CLIENT
- prompt "Install /etc/dhclient.conf"
- help
- PTXdist installs a /etc/dhclient.conf from a selectable source.
+if DHCP_CLIENT
-choice
- prompt "Kind of dhclient.conf"
- default DHCP_CLIENT_CONFIG_DEFAULT
- depends on DHCP_CLIENT_CONFIG
-
- config DHCP_CLIENT_CONFIG_DEFAULT
- bool
- prompt "Use generic"
- help
- Installs a generic /etc/dhclient.conf from the dhcp package.
- See <build-target/dhcp-?.?.?/client/dhclient.conf
+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>/generic/etc/dhclient.conf").
- config DHCP_CLIENT_CONFIG_USER
- bool
- prompt "User defined"
- help
- This uses a user defined /etc/dhclient.conf file. PTXdist
- uses files projectroot/etc/dhclient.conf in your local
- project
+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>/generic/etc/dhclient-script").
-endchoice
+endif
config DHCP_RELAY
bool