network-manager: add terminal based UI support
authorYegor Yefremov <yegorslists@googlemail.com>
Fri, 13 Jun 2014 08:31:30 +0000 (10:31 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 13 Jun 2014 13:01:36 +0000 (15:01 +0200)
NM provides a newt based UI. One can create, modify and delete NM
connections via this interface.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/network-manager/Config.in
package/network-manager/network-manager.mk

index 4503f3aa523c100b4ee5867cef1858c9a636b8dc..b7f223ebfd623f1fdfc072ac6e8111ff9f4c513c 100644 (file)
@@ -30,6 +30,12 @@ config BR2_PACKAGE_NETWORK_MANAGER
 
 if BR2_PACKAGE_NETWORK_MANAGER
 
+config BR2_PACKAGE_NETWORK_MANAGER_TUI
+       bool "nmtui support"
+       select BR2_PACKAGE_NEWT
+       help
+         This option enables terminal based UI
+
 config BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER
        bool "modem-manager support"
        select BR2_PACKAGE_MODEM_MANAGER
index 47c91d58eef35fc1707e8fa4b54013a5b97df57e..282e1e5e353eda41d6c882d5d5c8bb0560359c4e 100644 (file)
@@ -34,6 +34,13 @@ NETWORK_MANAGER_CONF_OPT = \
                --disable-ifupdown \
                --disable-ifnet
 
+ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI),y)
+       NETWORK_MANAGER_DEPENDENCIES += newt
+       NETWORK_MANAGER_CONF_OPT += --with-nmtui=yes
+else
+       NETWORK_MANAGER_CONF_OPT += --with-nmtui=no
+endif
+
 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD),y)
        NETWORK_MANAGER_DEPENDENCIES += pppd
        NETWORK_MANAGER_CONF_OPT += --enable-ppp