Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7bf98e2
Standardized printing. Organized color resources. Changed custom entr…
timjolson Jun 8, 2026
e898bd2
removed extra `declare`s and -g `global`
timjolson Jun 28, 2026
5131bb5
adjusted example command for formatting and it serves as a test of co…
timjolson Jun 28, 2026
7ae5764
custom command failures provide the exit code
timjolson Jun 28, 2026
84b3bec
Re-labeled colors for semantic indexing. removed extra formats. aCOLO…
timjolson Jun 28, 2026
b90f634
added colors reference
timjolson Jun 28, 2026
d6d9996
combined sudo and ns command prefixes since they were only ever used …
timjolson Jun 28, 2026
358b5fb
fixed syntax for shellcheck warning
timjolson Jun 28, 2026
bedf3d3
fixed indents
timjolson Jun 28, 2026
59250e9
added BANNER_GET_WAN_IP so dietpi-banner can have it's own behavior
timjolson Jun 28, 2026
e73b847
fail2ban status now uses 'fail2ban-client banned'. removed unneeded r…
timjolson Jun 29, 2026
754dbe0
on network usage, only do sudo if netns is requested
timjolson Jun 29, 2026
3a75e1e
Add example G_TRUNCATE_MID
timjolson Jun 29, 2026
0665835
improved disk space handling with fallbacks for missing data
timjolson Jun 29, 2026
1dca26b
fix indents
timjolson Jun 29, 2026
ccc8ccd
refactored for associative indexing. includes a migration feature
timjolson Jun 29, 2026
0599fb2
fixed shellchecks
timjolson Jun 29, 2026
57ce199
to accomodate associative indexing, added enumeration option to G_WHI…
timjolson Jun 29, 2026
956d0ff
keys were set in 3 places, so made the defaults more automated/dynami…
timjolson Jun 29, 2026
577ee3e
removed duplicate entry
timjolson Jun 30, 2026
11df32e
cleaned up shellcheck failures
timjolson Jun 30, 2026
ca2f16c
added migration for legacy aCOLOUR preferences
timjolson Jul 1, 2026
f3b7962
added error handling for No IPs blocked (or Fail2ban not running)
timjolson Jul 4, 2026
2970804
dietpi-banner: code alignments and simplification
MichaIng Jul 7, 2026
d49c0f5
dietpi-banner: some restructure
MichaIng Jul 7, 2026
78d815c
dietpi-banner: some more alignment
MichaIng Jul 7, 2026
8bc7a53
dietpi-globals: simplify G_WHIP_CHECKLIST_ENUM handling
MichaIng Jul 7, 2026
a248de4
fixed truncate length comparison and improved the output for shorter …
timjolson Jul 8, 2026
4850cff
cleaned up netns data and reduced sudo usage
timjolson Jul 8, 2026
284d4c7
dietpi-banner: some fixes and changes
MichaIng Jul 9, 2026
d0d588b
dietpi-banner: shorten some option keys
MichaIng Jul 9, 2026
f45fca5
dietpi-banner: fix disk usage
MichaIng Jul 9, 2026
e61bd47
dietpi-banner: little cleanup
MichaIng Jul 9, 2026
161d24e
dietpi-banner: revert extra empty line
MichaIng Jul 9, 2026
94bc908
dietpi-banner: align comment with what the line looks like
MichaIng Jul 10, 2026
9c67bbf
Made IP4_re mawk friendly. Fixed netns IPs not being detected due to …
timjolson Jul 9, 2026
6ee763c
removed unused 'width' parameter
timjolson Jul 9, 2026
f45a1d9
Updated truncat doc
timjolson Jul 10, 2026
8fd6f4b
dietpi-banner: re-apply fixed alignment for network stats
MichaIng Jul 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,19 @@ Below are minimal, copy-paste-ready examples that follow DietPi conventions.
log=1 G_WHIP_VIEWFILE "$FP_LOG" || return
```

- `G_TRUNCATE_MID` (shorten long strings by squishing the middle characters):
```
G_TRUNCATE_MID "Long text to be shortened by removing the middle" 26
# -> "Long text to... the middle"

# And `G_TRUNCATE_MID "alphabetical" N` returns the below, as N decreases
# alp...al
# al...al
# alphab
# alpha
# ... and so on
```

- `Save()` persistence pattern (follow dietpi-banner conventions):
```
Save(){
Expand Down
Loading