This commit is contained in:
Jan Schneider 2018-03-30 15:37:12 +02:00
parent f93aa872e2
commit 205fbbe829
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ proc ::rmupdate::get_rpi_version {} {
set revision_map(1a01041) "rpi3"
set revision_map(a020d3) "rpi3"
set fp [open /proc/cpuinfo r]
set data [read $fp]
set fd [open /proc/cpuinfo r]
set data [read $fd]
close $fd
foreach d [split $data "\n"] {
regexp {^Hardware\s*:\s*(\S+)} $d match hardware