From f9c23ce0e722601d0f0c42212a940122ed849a81 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 22 Mar 2018 23:21:37 +0100 Subject: [PATCH] Use new location of VERSION file --- addon/lib/rmupdate.tcl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index de189c7..4e0b936 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -951,7 +951,11 @@ proc ::rmupdate::clone_system {target_device {activate_clone 0}} { } proc ::rmupdate::get_current_firmware_version {} { - set fp [open "/boot/VERSION" r] + if {[file exists "/VERSION"]} { + set fp [open "/VERSION" r] + } else { + set fp [open "/boot/VERSION" r] + } set data [read $fp] close $fp regexp {\s*VERSION\s*=s*([\d\.]+)\s*$} $data match current_version