Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenWrt] Fix hostname detection #1602

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

macie
Copy link
Contributor

@macie macie commented Feb 8, 2025

This is a part of enabling support for OpenWrt, see: #1600.

(more details in commit messages)

macie added 3 commits February 8, 2025 17:24
This is the first step to fix error on OpenWrt without changing current
behavior.
OpenWrt can be run on devices with little resource, so it can miss some BusyBox
commands (eg. hostname). The standard way of gathering info about OpenWrt is by
the `uci` command, see: <https://openwrt.org/docs/guide-user/base-system/uci>.
To save resources, BusyBox for OpenWrt is compiled without support for
character classes in `tr` command (FEATURE_TR_CLASSES). In that case `tr`
treats `[:alnum:]` like a group of single characters, so it misses all numbers
and most of letters.
@macie macie mentioned this pull request Feb 8, 2025
5 tasks
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.

1 participant