ffluci-splash: Minor fixes
This commit is contained in:
parent
4700739186
commit
85cba95646
1 changed files with 5 additions and 5 deletions
|
@ -14,10 +14,7 @@ function main(argv)
|
||||||
local cmd = argv[1]
|
local cmd = argv[1]
|
||||||
local arg = argv[2]
|
local arg = argv[2]
|
||||||
|
|
||||||
if not cmd then
|
if cmd == "status" then
|
||||||
print("Usage: " .. argv[0] .. " <status|add|remove|sync> [MAC]")
|
|
||||||
os.exit(1)
|
|
||||||
elseif cmd == "status" then
|
|
||||||
if not arg then
|
if not arg then
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
|
@ -47,7 +44,7 @@ function main(argv)
|
||||||
end
|
end
|
||||||
os.exit(0)
|
os.exit(0)
|
||||||
elseif cmd == "remove" then
|
elseif cmd == "remove" then
|
||||||
if not cmd[2] then
|
if not arg then
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -56,6 +53,9 @@ function main(argv)
|
||||||
elseif cmd == "sync" then
|
elseif cmd == "sync" then
|
||||||
sync()
|
sync()
|
||||||
os.exit(0)
|
os.exit(0)
|
||||||
|
else
|
||||||
|
print("Usage: " .. argv[0] .. " <status|add|remove|sync> [MAC]")
|
||||||
|
os.exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue