Skip to content

Improve usability on embedded systems#2

Merged
jeffbencteux merged 3 commits intojeffbencteux:mainfrom
cgzones:embedded
Jan 11, 2025
Merged

Improve usability on embedded systems#2
jeffbencteux merged 3 commits intojeffbencteux:mainfrom
cgzones:embedded

Conversation

@cgzones
Copy link
Copy Markdown
Contributor

@cgzones cgzones commented Jan 6, 2025

  • add option to avoid terminal escape sequences (used for coloring) in case they are not supported by the terminal in use
  • differentiate between a systctl value having a non desired value and the key not existing on the current system

@jeffbencteux
Copy link
Copy Markdown
Owner

Idea is good. Checking the length of the value though is not enough it seems as errors provoked by other causes such as a permission denied are counted as "not found" values with your patch.

[-] kernel.unprivileged_bpf_disabled
sysctl: permission denied on key 'net.core.bpf_jit_harden'
...
Statistics:
  16 passed
  30 failed
  1 not found
  48 total

This is my bad because we do not stop on sysctl errors no more and errors are not counted anywhere. I made changes in main branch for it. Please rebase on it.

* add option to avoid terminal escape sequences (used for coloring) in
  case they are not supported by the terminal in use
* differentiate between a systctl value having a non desired value and
  the key not existing on the current system
@jeffbencteux jeffbencteux merged commit f70d0ed into jeffbencteux:main Jan 11, 2025
@jeffbencteux
Copy link
Copy Markdown
Owner

Thanks for contributing.

@cgzones cgzones deleted the embedded branch January 11, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants