Fix get_rpi_version

This commit is contained in:
Jan Schneider 2020-02-07 19:28:59 +01:00
parent f9ae679265
commit 7b860b244e
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ proc ::rmupdate::get_rpi_version {} {
close $fd
foreach d [split $data "\n"] {
if {[regexp {^HM_HOST='([^']+)'} $d match host]} {
if {[regexp {^(rpi\d)} $host match rpi_host]} {
return $rpi_host
}
return $host
}
}