1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 11:37:02 +00:00

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

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 { } {