udhcp: tweak config order and menu item names
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 4 Jan 2017 11:13:38 +0000 (12:13 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 4 Jan 2017 11:13:38 +0000 (12:13 +0100)
All other applets are listed simply by their name, no reason why
dumpleases doesn't do that.

Group all udhcpd feature options directly after it.

Put "NOT READY" into udhcpc6 item (some users actually tried to use it,
and complained).

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/Config.src
networking/udhcp/d6_dhcpc.c

index 90fb313b505a3d5982706c68ce547a78c9f45f39..7bc13a7193c818c3446e2b11583d0a3e6a191e69 100644 (file)
@@ -6,29 +6,13 @@
 INSERT
 
 config UDHCPD
-       bool "udhcp server (udhcpd)"
+       bool "udhcpd (DHCP server)"
        default y
        select PLATFORM_LINUX
        help
          udhcpd is a DHCP server geared primarily toward embedded systems,
          while striving to be fully functional and RFC compliant.
 
-config DHCPRELAY
-       bool "dhcprelay"
-       default y
-       help
-         dhcprelay listens for dhcp requests on one or more interfaces
-         and forwards these requests to a different interface or dhcp
-         server.
-
-config DUMPLEASES
-       bool "Lease display utility (dumpleases)"
-       default y
-       help
-         dumpleases displays the leases written out by the udhcpd server.
-         Lease times are stored in the file by time remaining in lease, or
-         by the absolute time that it expires in seconds from epoch.
-
 config FEATURE_UDHCPD_WRITE_LEASES_EARLY
        bool "Rewrite the lease file at every new acknowledge"
        default y
@@ -61,8 +45,24 @@ config DHCPD_LEASES_FILE
          udhcpd stores addresses in a lease file. This is the absolute path
          of the file. Normally it is safe to leave it untouched.
 
+config DUMPLEASES
+       bool "dumpleases"
+       default y
+       help
+         dumpleases displays the leases written out by the udhcpd.
+         Lease times are stored in the file by time remaining in lease, or
+         by the absolute time that it expires in seconds from epoch.
+
+config DHCPRELAY
+       bool "dhcprelay"
+       default y
+       help
+         dhcprelay listens for dhcp requests on one or more interfaces
+         and forwards these requests to a different interface or dhcp
+         server.
+
 config UDHCPC
-       bool "udhcp client (udhcpc)"
+       bool "udhcpc (DHCP client)"
        default y
        select PLATFORM_LINUX
        help
@@ -93,6 +93,15 @@ config FEATURE_UDHCPC_SANITIZEOPT
          they will be replaced with string "bad" when exporting
          to the environment.
 
+config UDHCPC_DEFAULT_SCRIPT
+       string "Absolute path to config script"
+       default "/usr/share/udhcpc/default.script"
+       depends on UDHCPC
+       help
+         This script is called after udhcpc receives an answer. See
+         examples/udhcp for a working example. Normally it is safe
+         to leave this untouched.
+
 config FEATURE_UDHCP_PORT
        bool "Enable '-P port' option for udhcpd and udhcpc"
        default n
@@ -130,15 +139,6 @@ config FEATURE_UDHCP_8021Q
          If selected, both client and server will support passing of VLAN
          ID and priority via options 132 and 133 as per 802.1Q.
 
-config UDHCPC_DEFAULT_SCRIPT
-       string "Absolute path to config script"
-       default "/usr/share/udhcpc/default.script"
-       depends on UDHCPC
-       help
-         This script is called after udhcpc receives an answer. See
-         examples/udhcp for a working example. Normally it is safe
-         to leave this untouched.
-
 config UDHCPC_SLACK_FOR_BUGGY_SERVERS
        int "DHCP options slack buffer size"
        default 80
index ddf3412a024c5bff6377a21b10ea9773f5ed5f72..64339c9b5e400969915eb3445c27225753d022ca 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 //config:config UDHCPC6
-//config:      bool "udhcp client for DHCPv6 (udhcpc6)"
+//config:      bool "udhcpc6 (DHCPv6 client, NOT READY)"
 //config:      default n  # not yet ready
 //config:      depends on FEATURE_IPV6
 //config:      help