1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Fix get_rpi_version

This commit is contained in:
Jan Schneider 2020-02-07 19:28:59 +01:00
parent f9ae679265
commit 7b860b244e

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
}
}