diff options
Diffstat (limited to 'alpineversion-model.lua')
-rw-r--r-- | alpineversion-model.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alpineversion-model.lua b/alpineversion-model.lua index b839785..80e38cf 100644 --- a/alpineversion-model.lua +++ b/alpineversion-model.lua @@ -1,12 +1,14 @@ -- alpineversion model methods -module (..., package.seeall) +local mymodule = {} fs = require("acf.fs") -get = function () +mymodule.get = function () local liboutput = fs.read_file("/etc/alpine-release") if (liboutput == nil) or (liboutput == "") then liboutput = "Unknown version" end return cfe({ value=liboutput, label="Alpine version" }) end + +return mymodule |