summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/network-manager/Config.in6
-rw-r--r--package/network-manager/network-manager.mk7
2 files changed, 13 insertions, 0 deletions
diff --git a/package/network-manager/Config.in b/package/network-manager/Config.in
index 4503f3aa52..b7f223ebfd 100644
--- a/package/network-manager/Config.in
+++ b/package/network-manager/Config.in
@@ -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
diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
index 47c91d58ee..282e1e5e35 100644
--- a/package/network-manager/network-manager.mk
+++ b/package/network-manager/network-manager.mk
@@ -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
OpenPOWER on IntegriCloud