Skip to content

device info: show serial number on info page#2815

Merged
r3claimer merged 2 commits into
ROCKNIX:nextfrom
sunshineinabox:Serialnumber
Jun 5, 2026
Merged

device info: show serial number on info page#2815
r3claimer merged 2 commits into
ROCKNIX:nextfrom
sunshineinabox:Serialnumber

Conversation

@sunshineinabox

Copy link
Copy Markdown
Contributor

Summary

  • What is the goal of this PR? Show serial number on Rocknix information page

Testing

  • How was this tested? Checked on Mangmi Air X

Additional Context

  • Add any other information that might be helpful for the reviewer Ensure no crashing on devices that don't set it

AI Usage

While ROCKNIX doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? NO

@sunshineinabox sunshineinabox changed the title Show serial number on info page device info: show serial number on info page Jun 3, 2026
echo "VERSION: ${OS_VERSION} (${OS_BUILD})"
echo "BUILD ID: ${BUILD_ID:0:7} (${BUILD_BRANCH})"
echo "KERNEL: ${V_SYSTEM} ($(uname -m))"
echo "SOC SERIAL NUMBER: $(cat ${DEVICE_SERIAL_NUMBER_PATH:-/dev/null})"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way you have this setup is that every device will show this on ROCKNIX info but if the device has no serial number then it will show this section even if blank. Please add a check that IF serial number / path is null then don't show this. We have other examples of how to accomplish this in the rocknix info script.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@r3claimer r3claimer added this pull request to the merge queue Jun 5, 2026
Merged via the queue into ROCKNIX:next with commit 310e09d Jun 5, 2026
2 checks passed
@sunshineinabox sunshineinabox deleted the Serialnumber branch June 5, 2026 19:50
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