From c9b6fd6fd9f97a7f2fe5108081b707ea393a618d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 10 Jan 2024 06:23:02 -0700 Subject: [PATCH] remove unnecessary files --- bin/armbian-configng | 6 +++++- lib/armbian-configng/System/get_system_clone.sh | 4 ++-- .../{Help => help}/category.conf | 0 lib/armbian-configng/help/see_group_lib_help.sh | 15 +++++++++++++++ lib/armbian-configng/{Help => help}/see_help.sh | 0 lib/armbian-configng/help/see_interface_help.sh | 16 ++++++++++++++++ lib/armbian-configng/help/see_monitor_help.sh | 16 ++++++++++++++++ 7 files changed, 54 insertions(+), 3 deletions(-) rename lib/armbian-configng/{Help => help}/category.conf (100%) create mode 100644 lib/armbian-configng/help/see_group_lib_help.sh rename lib/armbian-configng/{Help => help}/see_help.sh (100%) create mode 100644 lib/armbian-configng/help/see_interface_help.sh create mode 100644 lib/armbian-configng/help/see_monitor_help.sh diff --git a/bin/armbian-configng b/bin/armbian-configng index 534cd5e3e..d52f3d606 100755 --- a/bin/armbian-configng +++ b/bin/armbian-configng @@ -115,6 +115,7 @@ for category in "${categories[@]}"; do done done + # This function is used to generate a whiptail/dialog text-based user interface (TUI) for navigating the menus. generate_action() { local function_name="$1" @@ -398,11 +399,14 @@ generate_sub_tui() { if [[ -z "$1" ]] ; then + +echo -e "\nWarning:\ntry:\n\tarmbain-interface --help" | $bin/armbian-interface -o + while true; do if [[ "$dialogue" == "$file_name" ]]; then generate_read elif [[ "$dialogue" != "$file_name" ]]; then - generate_tui + generate_tui fi if [[ "$?" == "0" ]]; then diff --git a/lib/armbian-configng/System/get_system_clone.sh b/lib/armbian-configng/System/get_system_clone.sh index e72dbe908..b99613df0 100644 --- a/lib/armbian-configng/System/get_system_clone.sh +++ b/lib/armbian-configng/System/get_system_clone.sh @@ -13,8 +13,8 @@ # @default sdcard # @options [sdcard] [emmc] [usb] function placeholder::Install(){ - - armbian-install + see_get_dependencies armbian-install + [[ -f "/usr/sbin/armbian-install" ]] && armbian-install return 0 } diff --git a/lib/armbian-configng/Help/category.conf b/lib/armbian-configng/help/category.conf similarity index 100% rename from lib/armbian-configng/Help/category.conf rename to lib/armbian-configng/help/category.conf diff --git a/lib/armbian-configng/help/see_group_lib_help.sh b/lib/armbian-configng/help/see_group_lib_help.sh new file mode 100644 index 000000000..cbb2973b6 --- /dev/null +++ b/lib/armbian-configng/help/see_group_lib_help.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +# @description Configng Library Help message. +# @requirments none +# @exitcode 0 If successful. +# @default none +# @options none + + + +function help::configng(){ + clear + generate_help ; exit 0 +} \ No newline at end of file diff --git a/lib/armbian-configng/Help/see_help.sh b/lib/armbian-configng/help/see_help.sh similarity index 100% rename from lib/armbian-configng/Help/see_help.sh rename to lib/armbian-configng/help/see_help.sh diff --git a/lib/armbian-configng/help/see_interface_help.sh b/lib/armbian-configng/help/see_interface_help.sh new file mode 100644 index 000000000..39d6ba122 --- /dev/null +++ b/lib/armbian-configng/help/see_interface_help.sh @@ -0,0 +1,16 @@ +#!/bin/bash + + +# @description armbian-intrface Help message. +# @requirments none +# @exitcode 0 If successful. +# @default none +# @options none + + + +function help::interface(){ + clear + [[ -f /usr/bin/armbian-interface ]] && /usr/bin/armbian-interface -h || exit 2 + ./armbian-interface --help | ./armbian-interface -o ; exit 0 +} \ No newline at end of file diff --git a/lib/armbian-configng/help/see_monitor_help.sh b/lib/armbian-configng/help/see_monitor_help.sh new file mode 100644 index 000000000..d2ec89d33 --- /dev/null +++ b/lib/armbian-configng/help/see_monitor_help.sh @@ -0,0 +1,16 @@ +#!/bin/bash + + +# @description armbianmonitor Help message. +# @requirments none +# @exitcode 0 If successful. +# @default none +# @options none + + + +function help::monitor(){ + clear +[[ -f /usr/bin/armbianmonitor ]] && /usr/bin/armbianmonitor -h || exit 2 + exit 0 +} \ No newline at end of file