Dietpi banner upgrades#8172
Conversation
|
Outstanding items I know of:
|
MichaIng
left a comment
There was a problem hiding this comment.
A great extension! But there is some cleanup/polishing needed to reduce the overhead (in code an UI), and make it work for expected use cases.
…y to accept multiple commands. Added systemd and fail2ban status. Added network usage by namespace. Added disk usage by pattern matching. Added G_TRUNCATE_MID.
…lors inside custom commands
…UR saves just the relevant indexes. added some shellcheck bypasses and documentation.
…ead tests from network data usage. Get_Fail2Ban_Status is cleaner without the complicated sudo handling.
|
Just as an overview, the things I'd still want to do before merging. But will do so before DietPi v10.6 release (which will be delayed anyway because of a spontaneous holiday trip consuming some time this week):
|
* remove redundant carriage return: Print_Subheader isn't used anywhere inline. * remove obsolete comment about GeoIP removal, since this info is seen as benefitical addition to the IP address * remove doubled newline: dietpi-print_large has an empty line included already. Adding a second empty line makes the gap too big IMO
Whoos, dietpi-print_large does NOT include an empty line. It just appears as if it did, if the hostname has not hanging character, like no "g", "q" etc. Those however make use of the last line, in which case the next banner entry looks too close.
…being unfriendly.
I changed it to `echo -e` since the used `%s` format codes printed color codes literally. However, this can be solved with `%b` as well, keeping the min-length format codes of `printf`. Raised the "IP (iface)" min length to 23 characters, matchig complete IPv4 address + classic WiFi interface name.
|
I went through the open points you mentioned at the top. Regarding clearing the terminal in VS Code: See |
…t paths before patterns
I calculated the percent manually I've updated to use a single Next up: splitting dynamic patterns versus explicit paths and updating the menu |
…ng results. truncate disk display names
…d a safer delimiter
…ttern submenu. added migration of disk_rootfs and disk_userdata (removed them from the menu).
I'm looking at migrating the external script, but having a problem where, if we pull it into
I prefer 4 or 5, as they provide the most consistent behavior.
I am not familiar enough to move the multiple migrations over to Edit 1: |
…hed aCUSTOM_COMMANDS to use associative indices to take advantage of Print_Item_State for display consistency; still TODO: update the submenu for associative indexing
…upgraded custom commands submenu to match the style of disk_usage patterns submenu; added custom command migration (needs testing)
…the banner is displayed
Enhancing dietpi-banner.