testing version of LuaBIOS and OpenOS
people were having issues getting them to work so now we promote consistency
This commit is contained in:
13
data/OpenOS/bin/userdel.lua
Normal file
13
data/OpenOS/bin/userdel.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
local computer = require("computer")
|
||||
local shell = require("shell")
|
||||
|
||||
local args = shell.parse(...)
|
||||
if #args ~= 1 then
|
||||
io.write("Usage: userdel <name>\n")
|
||||
return 1
|
||||
end
|
||||
|
||||
if not computer.removeUser(args[1]) then
|
||||
io.stderr:write("no such user\n")
|
||||
return 1
|
||||
end
|
||||
Reference in New Issue
Block a user