diff options
author | Steven Barth <steven@midlink.org> | 2008-04-27 23:01:47 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-27 23:01:47 +0000 |
commit | 85cba95646165e201ecb15a698b2dc6a3a12760a (patch) | |
tree | fdb39d1dc9e060f87cdfc2a707e416387f478e6a | |
parent | 4700739186c0c4a4cc0cc5ba2ae5e421ee6c2a3f (diff) |
ffluci-splash: Minor fixes
-rw-r--r-- | contrib/package/ffluci-splash/src/luci-splash.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/package/ffluci-splash/src/luci-splash.lua b/contrib/package/ffluci-splash/src/luci-splash.lua index 72a801cd3..72b63494c 100644 --- a/contrib/package/ffluci-splash/src/luci-splash.lua +++ b/contrib/package/ffluci-splash/src/luci-splash.lua @@ -14,10 +14,7 @@ function main(argv) local cmd = argv[1] local arg = argv[2] - if not cmd then - print("Usage: " .. argv[0] .. " <status|add|remove|sync> [MAC]") - os.exit(1) - elseif cmd == "status" then + if cmd == "status" then if not arg then os.exit(1) end @@ -47,7 +44,7 @@ function main(argv) end os.exit(0) elseif cmd == "remove" then - if not cmd[2] then + if not arg then os.exit(1) end @@ -56,6 +53,9 @@ function main(argv) elseif cmd == "sync" then sync() os.exit(0) + else + print("Usage: " .. argv[0] .. " <status|add|remove|sync> [MAC]") + os.exit(1) end end |