summaryrefslogtreecommitdiffstats
path: root/alpineversion-model.lua
blob: 67a348cde89aee134a97ae70fab1d5872989f397 (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 ()
	require("fs")
	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