From: Giorgio <giorgio.nicole@arcor.de>
To: barebox@lists.infradead.org
Subject: variables with random values
Date: Thu, 12 May 2016 21:34:21 +0200 [thread overview]
Message-ID: <5c4dfe40-5338-cdbe-f96d-a5275f75872b@arcor.de> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 505 bytes --]
Hi,
I'm writing a shell script within barebox to assist an embedded board
initialization process. Some commands in the script do firmware
download with tftp; to allow initializing more than one board at
a time I need to assign every board a random ip address; I would
like to have a shell variable that every time it is dereferenced
it results in a new random (8 bits) value so I could write:
eth0.ipaddr=10.$RND.$RND.$RND
Is there a way to do something similar in barebox ?
giorgio
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 246 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2016-05-12 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 19:34 Giorgio [this message]
2016-05-12 19:41 ` Trent Piepho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c4dfe40-5338-cdbe-f96d-a5275f75872b@arcor.de \
--to=giorgio.nicole@arcor.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox