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 { } {
|
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 { } {
|
proc main { } {
|
||||||
|
|
Loading…
Reference in New Issue