From fc5f800e61330773928a2b76d736daea908e5d96 Mon Sep 17 00:00:00 2001 From: Izaya Date: Sat, 4 Aug 2018 05:24:07 +1000 Subject: [PATCH] updates to setup and such, and included the postinstall commands in programs.cfg --- OpenOS/README.md | 5 ++++- programs.cfg | 6 ++++++ util/OpenOS/usr/bin/mtcfg.lua | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/OpenOS/README.md b/OpenOS/README.md index 4989752..c0ec578 100644 --- a/OpenOS/README.md +++ b/OpenOS/README.md @@ -8,7 +8,10 @@ This package includes the Minitel daemon, in etc/rc.d/minitel.lua, and the net l #### With OPPM -1. Run `oppm install minitel` +1. Run `oppm install minitel-util` +2. Run `mtcfg` + +This will walk you through setting up Minitel. #### Manual diff --git a/programs.cfg b/programs.cfg index 53d9d7c..0414ca4 100644 --- a/programs.cfg +++ b/programs.cfg @@ -5,6 +5,9 @@ ["master/OpenOS/usr/lib/net.lua"] = "/lib", ["master/OpenOS/usr/man/minitel"] = "/man", }, + postinstall = { + "rc minitel enable", + }, name = "Minitel", description = "Simple and powerful networking stack", authors = "Izaya, Skye", @@ -18,6 +21,9 @@ dependencies = { ["minitel"] = "" }, + dependencies = { + "mtcfg", + }, name = "Minitel Util", description = "Assorted Minitel utilities", authors = "Izaya", diff --git a/util/OpenOS/usr/bin/mtcfg.lua b/util/OpenOS/usr/bin/mtcfg.lua index c498b76..4b99e96 100644 --- a/util/OpenOS/usr/bin/mtcfg.lua +++ b/util/OpenOS/usr/bin/mtcfg.lua @@ -130,3 +130,6 @@ if fobj then fobj:close() print("Settings successfully written!") end + +print("Enabling daemon...") +os.execute("rc minitel enable")