forgot to commit openos

This commit is contained in:
2026-04-01 11:04:22 +02:00
parent 9291d81d41
commit b0afd0529e
179 changed files with 13952 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
local computer = require("computer")
local shell = require("shell")
local args = shell.parse(...)
if #args ~= 1 then
io.write("Usage: useradd <name>\n")
return 1
end
local result, reason = computer.addUser(args[1])
if not result then
io.stderr:write(reason..'\n')
return 1
end