summaryrefslogtreecommitdiffstats
path: root/alpineversion-model.lua
blob: ac20bb8317bc37b67b903eb6ec574dd32f9374ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- alpineversion model methods
module (..., package.seeall)

fs = fs = require("acf.fs")

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