variables with random values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: OpenPGP digital signature

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux