From aa0303c07dfce2e4a445f36b550a277e70b71628 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 17 Mar 2020 05:08:43 +0000 Subject: [PATCH] Display a more obvious banner before the first prompt. Soutch the ctrl/recycle semaphore after making all config changes. No longer touch the data/fidoout.now semaphore after creating netmail message (unnecessary as the MsgBase.save_msg() call already does this). --- exec/init-fidonet.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/exec/init-fidonet.js b/exec/init-fidonet.js index 6163ba5138..e7df380fed 100644 --- a/exec/init-fidonet.js +++ b/exec/init-fidonet.js @@ -23,8 +23,11 @@ const REVISION = "$Revision$".split(' ')[1]; var netname = "FidoNet"; var fidoaddr = load({}, 'fidoaddr.js'); -print(js.exec_file + " v" + REVISION + " Initializing " + netname + " support in Synchronet"); -print("Use Ctrl-C to abort the process, if desired"); +print("******************************************************************************"); +print("* " + js.exec_file + " v" + format("%-30s", REVISION) + " *"); +print("* Initializing " + netname + " support in Synchronet *"); +print("* Use Ctrl-C to abort the process if desired *"); +print("******************************************************************************"); print("Reading Message Area configuration file: msgs.cnf"); var cnflib = load({}, "cnflib.js"); @@ -206,6 +209,10 @@ if(confirm("Install BinkIT")) { system.exec(system.exec_dir + "jsexec binkit install"); } +print("Requesting Synchronet recycle (configuration-reload)"); +if(!file_touch(system.ctrl_dir + "recycle")) + alert("Recycle semaphore file update failure"); + /************************/ /* SEND AREAFIX NETMAIL */ /************************/ @@ -227,7 +234,6 @@ if(confirm("Create an AreaFix request to link ALL EchoMail areas with " exit(1); } msgbase.close(); - file_touch(system.data_dir + "fidoout.now"); print("AreaFix NetMail message created successfully."); } @@ -237,7 +243,8 @@ if(confirm("Create an AreaFix request to link ALL EchoMail areas with " print(netname + " initial setup completely successfully."); print(); if(your.node == 9999) { - print("You used a temporary (e.g. /9999) node address. You will need to update your"); + print("You used a temporary node address (" + fidoaddr.to_str(your) + + "). You will need to update your"); print("SCFG->Networks->FidoNet->Address once your permanent node address has been"); print("assigned to you."); print(); -- GitLab