-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expands cli monitoring to include other armbianmonitor featurs.
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module_options+=( | ||
["see_monitoring,author"]="Joey Turner" | ||
["see_monitoring,ref_link"]="" | ||
["see_monitoring,feature"]="see_monitoring" | ||
["see_monitoring,desc"]="Generate a markdown list json objects using jq." | ||
["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 | ||
} |