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:
parent
76bdd7ced9
commit
576243e970
@ -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 { } {
|
||||
|
Loading…
x
Reference in New Issue
Block a user