check for /VERSION first before using /boot/VERSION (improves CCU3/RaspberryMatic

compatibility)
This commit is contained in:
Jens Maus 2018-10-24 08:38:37 +02:00
parent 76bdd7ced9
commit 576243e970
No known key found for this signature in database
GPG Key ID: F015DB70F176184A
1 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,11 @@ proc read_var { filename varname } {
}
proc get_version { } {
return [read_var /boot/VERSION VERSION]
if { [file exists /VERSION] == 1 } {
return [read_var /VERSION VERSION]
} else {
return [read_var /boot/VERSION VERSION]
}
}
proc main { } {