Fix get_rpi_version
This commit is contained in:
parent
f9ae679265
commit
7b860b244e
|
@ -111,6 +111,9 @@ proc ::rmupdate::get_rpi_version {} {
|
||||||
close $fd
|
close $fd
|
||||||
foreach d [split $data "\n"] {
|
foreach d [split $data "\n"] {
|
||||||
if {[regexp {^HM_HOST='([^']+)'} $d match host]} {
|
if {[regexp {^HM_HOST='([^']+)'} $d match host]} {
|
||||||
|
if {[regexp {^(rpi\d)} $host match rpi_host]} {
|
||||||
|
return $rpi_host
|
||||||
|
}
|
||||||
return $host
|
return $host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue