mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Use new location of VERSION file
This commit is contained in:
parent
854e5cb509
commit
f9c23ce0e7
@ -951,7 +951,11 @@ proc ::rmupdate::clone_system {target_device {activate_clone 0}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc ::rmupdate::get_current_firmware_version {} {
|
proc ::rmupdate::get_current_firmware_version {} {
|
||||||
|
if {[file exists "/VERSION"]} {
|
||||||
|
set fp [open "/VERSION" r]
|
||||||
|
} else {
|
||||||
set fp [open "/boot/VERSION" r]
|
set fp [open "/boot/VERSION" r]
|
||||||
|
}
|
||||||
set data [read $fp]
|
set data [read $fp]
|
||||||
close $fp
|
close $fp
|
||||||
regexp {\s*VERSION\s*=s*([\d\.]+)\s*$} $data match current_version
|
regexp {\s*VERSION\s*=s*([\d\.]+)\s*$} $data match current_version
|
||||||
|
Loading…
Reference in New Issue
Block a user