extended info when no domain is given v2

... the easy way ... 
the better way is ... a parameter to get domain status... like
gluon-switch-domain status  --> uci get gluon.core.domain
...but... until then... this is helpful...

...with some fixes
This commit is contained in:
cptechnik 2023-02-19 15:08:44 +01:00 committed by GitHub
parent d8a44ed8c5
commit 843ec957d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ end
local setup_mode = unistd.access('/var/gluon/setup-mode') == 0
if #arg ~= 1 then
io.stderr:write('Usage: gluon-switch-domain [--no-reboot] <domain>\n use: uci show gluon.core to view your actual domain')
io.stderr:write('Usage: gluon-switch-domain [--no-reboot] <domain>\nUse: uci show gluon.core to view your actual domain\n')
os.exit(1)
end
local domain = arg[1]