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

Add optional serial number to file #252

Merged
merged 4 commits into from
Sep 12, 2018
Merged

Add optional serial number to file #252

merged 4 commits into from
Sep 12, 2018

Conversation

xvilo
Copy link
Contributor

@xvilo xvilo commented Sep 12, 2018

This will give one the ability to add {serial} to the URL. This will be replaced with the PI's serial number

@xvilo
Copy link
Contributor Author

xvilo commented Sep 12, 2018

Should be fine now :)

@guysoft
Copy link
Owner

guysoft commented Sep 12, 2018

Fixes #251

@guysoft guysoft merged commit 0416d6b into guysoft:devel Sep 12, 2018
@xvilo
Copy link
Contributor Author

xvilo commented Sep 12, 2018

@guysoft for future refrence, just add another variable with data you want and add -e "s/search-regex/${NEW_VAR}/g to current sed command.

@lippoliv
Copy link

lippoliv commented Oct 2, 2018

I had Problems with your regex on an RaspberryPI 3, I used this to get it running

cat /proc/cpuinfo | perl -n -e '/^Serial[^:]*: ([0-9a-f]{16})$/ && print "$1\n"'

@xvilo
Copy link
Contributor Author

xvilo commented Oct 2, 2018

Yea, I had issues too. Didn't had the time to fix, investigate and report it :P

@guysoft
Copy link
Owner

guysoft commented Oct 2, 2018

@lippoliv Can you make a PR please.

@guysoft
Copy link
Owner

guysoft commented Apr 8, 2024

Also this should be documented in the wiki

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.

4 participants