-- minux main api's
-- recursive listing
function lsr(searchpath)
    os.run({}, "/etc/minux-main/ls/ls.sys" , searchpath)
end
-- login system
function login(login, password)
    os.run({}, "/bin/login.sh" , login , password)
end
function logintype()
	if fs.exists("/etc/auth.cfg") then
		file = fs.open("/etc/auth.cfg" , "r")
		authtype = file.readLine()
		file.close()
	else
		authtype = "disabled"
	end
	return authtype
end
-- monitorprint
function monitorprint(printstring)
    os.run({}, "/etc/minux-main/sys/monitorprint.sys" , printstring)
end