From 23804d10f1c281ded9cfbc091c5212d75756626f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 10 May 2002 14:23:24 +0000 Subject: [PATCH] Patches for SuSE init --- ChangeLog | 3 +++ mbsetup/m_fgroup.c | 7 ++++++- mbsetup/m_ticarea.c | 7 ++++++- script/init.SuSE | 8 +++++++- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e396ddb..9af157bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4674,6 +4674,8 @@ v0.33.20 10-Feb-2002 Fixed numbering of menu 8.7, edit oneliners. Added menu 8.8 for safe crackers data. If the safe is cracked it can now be reset. + Protected convert-all setting in menus 10.1 and 10.2 when no + default archiver is defined. mbmon: The top statusbar now displays the bbs Free/Down/Busy status. @@ -4885,4 +4887,5 @@ v0.33.20 10-Feb-2002 installinit.sh Modified for SuSE 7.1 and later, the location of the startup script moved from /sbin to /etc. Patch by Joachim Kuwan. + Also modified init.SuSE for Yast on SuSE 8.0 diff --git a/mbsetup/m_fgroup.c b/mbsetup/m_fgroup.c index ad26e2f9..bdc5dfa1 100644 --- a/mbsetup/m_fgroup.c +++ b/mbsetup/m_fgroup.c @@ -461,7 +461,12 @@ int EditFGrpRec(int Area) case 26:E_BOOL(11,70, fgroup.Announce, "Set ^Announce files^ in new created tic areas") case 27:E_BOOL(12,70, fgroup.UpdMagic, "Set ^Update magic^ in new created tic areas") case 28:E_BOOL(13,70, fgroup.FileId, "Set ^FILE_ID.DIZ extract^ in new created tic areas") - case 29:E_BOOL(14,70, fgroup.ConvertAll, "Set ^Convert All^ setting in new created tic areas") + case 29:tmp = edit_bool(14,70, fgroup.ConvertAll, (char *)"Set ^Convert All^ setting in new created tic areas"); + if (tmp && !fgroup.ConvertAll && (strlen(fgroup.Convert) == 0)) + errmsg("No archiver configured to convert to, edit 9 first"); + else + fgroup.ConvertAll = tmp; + break; case 30:E_BOOL(15,70, fgroup.SendOrg, "Set ^Send original^ setting in new created tic areas") case 31:E_SEC( 16,70, fgroup.DLSec, "10.1.31 FILE GROUP DOWNLOAD SECURITY", FgScreen) case 32:E_SEC( 17,70, fgroup.UPSec, "10.1.32 FILE GROUP UPLOAD SECURITY", FgScreen) diff --git a/mbsetup/m_ticarea.c b/mbsetup/m_ticarea.c index 7d4b67ae..3ac51eb8 100644 --- a/mbsetup/m_ticarea.c +++ b/mbsetup/m_ticarea.c @@ -930,7 +930,12 @@ int EditTicRec(int Area) case 15:E_BOOL(11,55, tic.Announce, "^Announce^ received files"); case 16:E_BOOL(12,55, tic.UpdMagic, "Update files ^magic^ names"); case 17:E_BOOL(13,55, tic.FileId, "Extract ^FILE_ID.DIZ^ from received files"); - case 18:E_BOOL(14,55, tic.ConvertAll, "^Convert^ archive always"); + case 18:tmp = edit_bool(14,55, tic.ConvertAll, (char *)"^Convert^ archive always"); + if (tmp && !tic.ConvertAll && strlen(tic.Convert) == 0) + errmsg("No archiver configured to convert to, edit 8 first"); + else + tic.ConvertAll = tmp; + break; case 19:E_BOOL(15,55, tic.SendOrg, "^Send original^ file to downlinks"); case 20:E_BOOL( 7,77, tic.Mandat, "Is this area ^mandatory^"); case 21:E_BOOL( 8,77, tic.Notified, "Is the sysop ^notified^ if this area is (dis)connected"); diff --git a/script/init.SuSE b/script/init.SuSE index 021cd8a0..7bde2d66 100644 --- a/script/init.SuSE +++ b/script/init.SuSE @@ -3,7 +3,13 @@ # $Id$ # # /sbin/init.d/mbsed for SuSE -# + +### BEGIN INIT INFO +# Provides: mbsed +# Default-Start: 2 3 5 +# Default-Stop: +# Description: Start MBSE BBS +### END INIT INFO # Find the MBSE_ROOT from the /etc/passwd file. MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`