blob: 830cf59da140cc98f3416ab48cb250e7810d367d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- alpineversion model methods
module (..., package.seeall)
-- no initializer in model - use controller.init for that
get = function (self)
require("fs")
local liboutput = fs.read_file("/etc/alpine-release")
if (liboutput == nil) or (liboutput == "") then
liboutput = "Unknown version"
end
return liboutput
end
|