diff --git a/bin/armbian-configng b/bin/armbian-configng index e291bc7a0..c443b7a5e 100755 --- a/bin/armbian-configng +++ b/bin/armbian-configng @@ -47,7 +47,8 @@ source "$lib_dir/config.ng.system.sh" echo "Loaded System helpers..." #| show_infobox ; source "$lib_dir/config.ng.network.sh" echo "Loaded Network helpers..." #| show_infobox ; - +source "$lib_dir/config.ng.software.sh" +echo "Loaded Software helpers..." #| show_infobox ; # # Loads the variables from beta armbian-config for runtime handling diff --git a/lib/armbian-configng/config.ng.jobs.json b/lib/armbian-configng/config.ng.jobs.json index dbf083a35..827ee553f 100644 --- a/lib/armbian-configng/config.ng.jobs.json +++ b/lib/armbian-configng/config.ng.jobs.json @@ -516,14 +516,16 @@ }, { "id": "I01", - "description": "CLI System Monitor", + "description": "System benchmaking and diagnostics", "command": [ - "armbianmonitor -m | show_infobox" + "see_monitoring" ], "status": "Active", "doc_link": "", "src_reference": "", - "author": "" + "author": "", + "condition": "ls /usr/bin/armbianmonitor" + } ] }, diff --git a/lib/armbian-configng/config.ng.software.sh b/lib/armbian-configng/config.ng.software.sh new file mode 100644 index 000000000..f8a8dc459 --- /dev/null +++ b/lib/armbian-configng/config.ng.software.sh @@ -0,0 +1,22 @@ +module_options+=( + ["see_monitoring,author"]="Joey Turner" + ["see_monitoring,ref_link"]="" + ["see_monitoring,feature"]="see_monitoring" + ["see_monitoring,desc"]="Menu for armbianmonitor features" + ["see_monitoring,example"]="see_monitoring" + ["see_monitoring,status"]="review" + ["see_monitoring,doc_link"]="" +) +# +# @decrition generate a menu for armbianmonitor +# +function see_monitoring() { + if [ -f /usr/bin/htop ]; then + choice=$(armbianmonitor -h | grep -Ev '^\s*-c\s|^\s*-M\s' | show_menu) + + armbianmonitor -$choice + + else + echo "htop is not installed" + fi +}