diff options
Diffstat (limited to 'alpineversion-model.lua')
-rw-r--r-- | alpineversion-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alpineversion-model.lua b/alpineversion-model.lua index 830cf59..67a348c 100644 --- a/alpineversion-model.lua +++ b/alpineversion-model.lua @@ -4,11 +4,11 @@ module (..., package.seeall) -- no initializer in model - use controller.init for that -get = function (self) +get = function () require("fs") local liboutput = fs.read_file("/etc/alpine-release") if (liboutput == nil) or (liboutput == "") then liboutput = "Unknown version" end - return liboutput + return cfe({ value=liboutput, label="Alpine version" }) end |