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:
parent
f9ae679265
commit
7b860b244e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user