
7 Dec
2016
7 Dec
'16
11:35 p.m.
Haris Papadopoulos haris@amberbox.com writes:
Hi,
I type fw_printenv variable_name to take the name of a uboot variable from linux.
I get variable_name=10 for example
How can I use the value 10 in the continuation of my script?
I have tried
string = fw_printenv flag_boot_error IFS="=" read name value <<< $string
but it does not work
"fw_printenv -n VAR" prints the value of variable VAR without the name and equals sign.
--
Måns Rullgård