diff --git a/util/OpenOS/usr/bin/mtcfg.lua b/util/OpenOS/usr/bin/mtcfg.lua index 4b99e96..5100fd3 100644 --- a/util/OpenOS/usr/bin/mtcfg.lua +++ b/util/OpenOS/usr/bin/mtcfg.lua @@ -1,6 +1,7 @@ local event = require "event" local serial = require "serialization" local computer = require "computer" +local shell = require "shell" local hostname = os.getenv("HOSTNAME") local cfgfile = "/etc/minitel.cfg" @@ -14,6 +15,8 @@ cfg.rctime = 15 cfg.pctime = 30 cfg.sroutes = {} +local args, ops = shell.parse(...) + local function clear() io.write("\27[2J\27[H") end @@ -51,6 +54,10 @@ if not hostname then event.pull("key_down") end +if ops.firstrun then + print("Run mtcfg to configure advanced settings.") +end + local keytab = {} for k,v in pairs(cfg) do if type(v) ~= "table" then