Skip to contentSkip to conversation

procps-ng: option to original top layout

PATCH Applied Xiang Lin 2 participants 2 messages Aug 4, 2024

lore
Share & tools
lore

Xiang Lin

author
#0 lore raw

PATCH 1/1 procps-ng: option to original top layout

New procps-ng use modern top layout by default which without detail cpu usage info, give a option for nostalgic one to return to original.

---
 package/procps-ng/Config.in    | 10 ++++++++++
 package/procps-ng/procps-ng.mk |  4 ++++
 2 files changed, 14 insertions(+)
package/procps-ng/Config.in +10 -0
index 6ff8983202..4afd01699b 100644
@@ -8,3 +8,13 @@ config BR2_PACKAGE_PROCPS_NG
 	  Provides things like kill, ps, uptime, free, top, etc...
 
 	  http://sourceforge.net/projects/procps-ng/
+
+if BR2_PACKAGE_PROCPS_NG
+
+config BR2_PACKAGE_PROCPS_NS_ORIGINAL_TOP
+	bool "Use original top layout"
+	help
+	  Disable modern top layout, return to original top with
+	  detail cpu usage.
+
+endif
package/procps-ng/procps-ng.mk +4 -0
index ba8958d146..3f6136b08f 100644
@@ -54,6 +54,10 @@ else
 PROCPS_NG_CONF_OPTS += --enable-w
 endif
 
+ifeq ($(BR2_PACKAGE_PROCPS_NS_ORIGINAL_TOP),y)
+PROCPS_NG_CONF_OPTS += --disable-modern-top
+endif
+
 # Avoid installing S02sysctl, since openrc provides /etc/init.d/sysctl.
 define PROCPS_NG_INSTALL_INIT_OPENRC
 	@:
Signature · 6 lines
2.45.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · On Sun, 4 Aug 2024 11:12:32 +0800 Xiang Lin <[email protected]> wrote:

New procps-ng use modern top layout by default which without detail cpu usage info, give a option for nostalgic one to return to original.

---
 package/procps-ng/Config.in    | 10 ++++++++++
 package/procps-ng/procps-ng.mk |  4 ++++
 2 files changed, 14 insertions(+)

Applied to master with a slightly improved commit log. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot