summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-15 16:30:06 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-15 16:30:06 +0000
commitcf3e6d7bd2b2b05a748769ea65f40b459dafe45e (patch)
treed634584d0521056434016adfb2fda0c954b07509
parent08c21c265383b185234a11d4675794081dd15df2 (diff)
Makeconf is pretty much dead, not worth reviving.. new version will come later. (CYA IN HELL!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@888 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xmakeconf712
1 files changed, 0 insertions, 712 deletions
diff --git a/makeconf b/makeconf
deleted file mode 100755
index aa65c691c..000000000
--- a/makeconf
+++ /dev/null
@@ -1,712 +0,0 @@
-#!/bin/sh
-# InspIRCd Configuration Creator
-#
-# Copyright 2003 The ChatSpike Development Team
-# <Craig@chatspike.net>
-# <brain@chatspike.net>
-#
-# $Id$
-#
-#
-########################################################
-
-echo "Configuring Default Values"
-
-ME=`pwd`
-TEMP="$ME/makeconf.temp"
-SERV_NAME="my.server.name"
-SERV_DESC="My InspIRCd Server"
-SERV_NET="MyNetwork"
-
-ADMIN_NAME="My Name"
-ADMIN_NICK="MyNick"
-ADMIN_MAIL="My@E-Mail.Address"
-
-DIE_PASS="DieNow"
-RESTART_PASS="RestartNow"
-DIE_WAIT="5"
-
-CONNECT_ALLOW="*"
-CONNECT_PASS="ServerPass"
-
-VHOST_DOMAIN="inspircd.org"
-
-OPER_NICK="Fred"
-OPER_PASS="mysecret"
-OPER_HOST="*@*"
-OPER_TYPE="NetAdmin"
-
-FILES_MOTD="$ME/conf/inspire.motd"
-FILES_RULE="$ME/conf/inspire.rules"
-
-OP_PREFIX="Quit: "
-OP_DEBUG="default"
-OP_HALFY="yes"
-OP_PROTE="yes"
-OP_FOUND="yes"
-OP_MAWHO="128"
-
-rm -f $TEMP
-
-c=""
-n=""
-
-if [ "`eval echo -n 'a'`" = "-n a" ] ; then
- c="\c"
- else
- n="-n"
-fi
-
-clear
-echo -e "'\033[1;33m####\033[0;37m:'\033[1;33m##\033[0;37m::: \033[1;33m##\033[0;37m::'\033[1;33m######\033[0;37m::'\033[1;33m########\033[0;37m::'\033[1;33m####\033[0;37m:'\033[1;33m########\033[0;37m:::'\033[1;33m######\033[0;37m::'\033[1;33m########\033[0;37m::"
-echo -e ". \033[1;33m##\033[0;37m:: \033[1;33m###\033[0;37m:: \033[1;33m##\033[0;37m:'\033[1;33m##\033[0;37m... \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m.... \033[1;33m##\033[0;37m:. \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m.... \033[1;33m##\033[0;37m:'\033[1;33m##\033[0;37m... \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m.... \033[1;33m##\033[0;37m:"
-echo -e ": \033[1;33m##\033[0;37m:: \033[1;33m####\033[0;37m: \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m:::..:: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m:::..:: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m:"
-echo -e ": \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m \033[1;33m##\033[0;37m \033[1;33m##\033[0;37m:. \033[1;33m######\033[0;37m:: \033[1;33m########\033[0;37m::: \033[1;33m##\033[0;37m:: \033[1;33m########\033[0;37m:: \033[1;33m##\033[0;37m::::::: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m:"
-echo -e ": \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m. \033[1;33m####\033[0;37m::..... \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m.....:::: \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m.. \033[1;33m##\033[0;37m::: \033[1;33m##\033[0;37m::::::: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m:"
-echo -e ": \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m:. \033[1;33m###\033[0;37m:'\033[1;33m##\033[0;37m::: \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m::::::::: \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m::. \033[1;33m##\033[0;37m:: \033[1;33m##\033[0;37m::: \033[1;33m##\033[0;37m: \033[1;33m##\033[0;37m:::: \033[1;33m##\033[0;37m:"
-echo -e "'\033[1;33m####\033[0;37m: \033[1;33m##\033[0;37m::. \033[1;33m##\033[0;37m:. \033[1;33m######\033[0;37m:: \033[1;33m##\033[0;37m::::::::'\033[1;33m####\033[0;37m: \033[1;33m##\033[0;37m:::. \033[1;33m##\033[0;37m:. \033[1;33m######\033[0;37m:: \033[1;33m########\033[0;37m::"
-echo -e "\033[0;37m\033[0;37m....::..::::..:::......:::..:::::::::....::..:::::..:::......:::........:::"
-echo ""
-echo -e "\033[1;37mWelcome to the inspircd.conf file maker!!"
-echo -e "\033[0;37m"
-echo -e "*** Although with most values, hitting \033[1;37m<RETURN>\033[0;37m will use the default, ***"
-echo "*** others are not like this. Where possible, Please fill in all the ***"
-echo "*** values manually. Once complete, you *WILL* be required to edit ***"
-echo "*** the created file manually, to ensure values are correct. Enjoy! ***"
-echo -e "*** Between the [\033[1;32mBRACKETS\033[0;37m] will be default / example values to help ***"
-
-echo ""
-echo ""
-
-echo "The first Part of this is the server Configuration. Here we will take"
-echo "Details, Such as the servers name, Description, and The administrators"
-echo "information. Once complete, the Screen will clear, and stage 2 will begin"
-
-echo ""
-echo "Enter Servers Name"
-echo -e $n "[\033[1;32m$SERV_NAME\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- SERV_NAME=$cc
-fi
-
-
-echo ""
-echo "Enter Server Description"
-echo -e $n "[\033[1;32m$SERV_DESC\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- SERV_DESC=$cc
-fi
-
-
-echo ""
-echo "Enter Your Network Name"
-echo -e $n "[\033[1;32m$SERV_NET\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- SERV_NET=$cc
-fi
-
-
-echo ""
-echo ""
-
-echo ""
-echo "Enter Administrators Full Name"
-echo -e $n "[\033[1;32m$ADMIN_NAME\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- ADMIN_NAME=$cc
-fi
-
-
-echo ""
-echo "Enter Administrators NickName"
-echo -e $n "[\033[1;32m$ADMIN_NICK\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- ADMIN_NICK=$cc
-fi
-
-
-echo ""
-echo "Enter Administrators Email Address"
-echo -e $n "[\033[1;32m$ADMIN_MAIL\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- ADMIN_MAIL=$cc
-fi
-
-
-echo "Section Complete, Writing Config File Header."
-
-###
-# Config file header Here!
-###
-
-echo "########################################################################" >> $TEMP
-echo "# #" >> $TEMP
-echo "# --------------------------- #" >> $TEMP
-echo "# InspIRCd Configuration File #" >> $TEMP
-echo "# --------------------------- #" >> $TEMP
-echo "# #" >> $TEMP
-echo "##################################||####################################" >> $TEMP
-echo " #||#" >> $TEMP
-echo "##################################||####################################" >> $TEMP
-echo "# #" >> $TEMP
-echo "# This is an example of the config file for InspIRCd. #" >> $TEMP
-echo "# Change the options to suit your network #" >> $TEMP
-echo "# #" >> $TEMP
-echo "# Written by : makeconf (Craig@inspircd.org) #" >> $TEMP
-echo "# #" >> $TEMP
-echo "########################################################################" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-###
-# Complete, server tag now
-###
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#- SERVER DESCRIPTION -#-#-#-#-#-#-#-#-#-#-#-#-" >> $TEMP
-echo "<server name=\"$SERV_NAME\"" >> $TEMP
-echo " description=\"$SERV_DESC\"" >> $TEMP
-echo " network=\"$SERV_NET\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-###
-# Admin Tag..
-###
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#- ADMIN INFORMATION -#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "<admin name=\"$ADMIN_NAME\"" >> $TEMP
-echo " nick=\"$ADMIN_NICK\"" >> $TEMP
-echo " email=\"$ADMIN_MAIL\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-###
-# Complete.
-###
-
-clear
-echo "Congratulations, you have successfully Configured your Server and Administrator"
-echo "Information Correctly. Proceeding to Servers Port Configuration."
-
-echo ""
-echo ""
-
-echo "Now its time to specify which IP and ports you wish to run the IRCd on."
-echo "When asked please enter the IP Address, and ports. As a note, you may"
-echo "Leave the IP Address blank to bind to all avaliable interfaces."
-echo ""
-echo "To end, either type \"done\" as the IP, or leave the Port Blank."
-echo ""
-
-###
-# Write Config Header..
-###
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- RTFM LINE -#-#-#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "# #" >> $TEMP
-echo "# Just remove this... Its here to make you read through this file #" >> $TEMP
-echo "# properly after running \"makeconf\" #" >> $TEMP
-echo "" >> $TEMP
-echo "<die value=\"tut tut, someone didnt check their config file properly\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#- PORT CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-" >> $TEMP
-
-###
-# Ok, done.. Proceed :)
-###
-
-BOUND_PORT=""
-ok=0
-default=0
-while [ $ok -eq 0 ] ; do
- echo "Enter the IP"
- echo $n "[] -> $c"
- read cc
- if [ "$cc" == "done" ] ; then
- ok=1
- else
- BIND_IP=$cc
- fi
- if [ "$ok" != "1" ] ; then
- echo -e "Ports Already Bound: \033[1;32m$BOUND_PORT\033[0;37m"
- echo "Enter Port to Bind to $BIND_IP"
- echo $n "[] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- ok=1
- else
- default=1
- BOUND_PORT="$BOUND_PORT $cc"
- echo "<bind address=\"$BIND_IP\" port=\"$cc\">" >> $TEMP
- fi
- fi
-done
-
-if [ "$default" == "0" ] ; then
- echo "<bind address=\"\" port=\"6667\">" >> $TEMP
-fi
-
-###
-# OoOok.. Finishing section
-###
-
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-###
-# Finished, Port Configuration Complete :D
-###
-
-
-clear
-if [ "$default" == "0" ] ; then
- echo "<bind address=\"\" port=\"6667\">" >> $TEMP
- echo ""
- echo ""
-fi
-echo "See? that wasnt so hard, The next bit is easier, just more important."
-
-echo ""
-echo ""
-echo "I now need you to specify Passwords which will shut down, and restart"
-echo "your server, these are _IMPORTANT_ and i will not allow you to use the"
-echo "default passwords, you must use your own."
-ok=0
-while [ $ok -eq 0 ] ; do
- echo ""
- echo "Enter the password to Kill the IRCd"
- echo -e $n "[\033[1;32m$DIE_PASS\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- echo ""
- echo "You _MUST_ specify your Own Password, try again."
- else
- DIE_PASS=$cc
- ok=1
- fi
-done
-
-echo ""
-echo ""
-ok=0
-while [ $ok -eq 0 ] ; do
- echo ""
- echo "Now Enter the Password you will use to Restart."
- echo -e $n "[\033[1;32m$RESTART_PASS\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- echo ""
- echo "You _MUST_ specify your Own Password, try again."
- else
- RESTART_PASS=$cc
- ok=1
- fi
-done
-
-echo ""
-echo "Enter the Pause Between Issuing a DIE/RESTART request to the IRCd Actually doing it [in Seconds]"
-echo -e $n "[\033[1;32m$DIE_WAIT\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- DIE_WAIT=$cc
-fi
-
-###
-# Now Write the config.. What phun
-###
-
-echo "#-#-#-#-#-#-#-#-#-#- DIE/RESTART CONFIGURATION -#-#-#-#-#-#-#-#-#-#-" >> $TEMP
-echo "<power diepass=\"$DIE_PASS\"" >> $TEMP
-echo " restartpass=\"$RESTART_PASS\"" >> $TEMP
-echo " pause=\"$DIE_WAIT\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-###
-# <Insert done comment here>
-###
-clear
-echo "ok, seeing as we managed that, we have to Arrange a list of people allowed to connect :)"
-echo ""
-echo ""
-
-echo "This section allows you to Specify who is allowed Access to the IRCd. IP Addresses only Please"
-echo "Although you can choose to use wildcards if you please. The default is * with no password."
-echo "Type \"done\" at the IP Address, or leave it blank to finish, you do _NOT_ have to specify"
-echo "any passwords"
-echo ""
-
-
-###
-# Just another Friendly Header :p
-###
-
-echo "#-#-#-#-#-#-#-#-#-#- CONNECTIONS CONFIGURATION -#-#-#-#-#-#-#-#-#-#-" >> $TEMP
-
-ok=0
-default=0
-
-while [ $ok -eq 0 ] ; do
- echo ""
- echo "Enter The IP Address"
- echo -e $n "[\033[1;32m$CONNECT_ALLOW\033[0;37m] -> $c"
- read cc
- if [ "$cc" == "done" ] ; then
- ok=1
- elif [ ! "$cc" ] ; then
- ok=1
- else
- ALLOW_IP=$cc
- fi
- if [ "$ok" != "1" ] ; then
- echo "A Registration Timeout is the time it takes before Ping Timeouting"
- echo "a client trying to connect to the server, which hasnt issued the initial"
- echo "commands. It is recommended that you set this to 90, if you give no"
- echo "value, the default will be used."
- echo "Enter 'registration' timeout"
- echo $n "[\033[1;32m90\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- TIMEOUT = "90"
- else
- TIMEOUT = $cc
- fi
- echo "Enter Password [If Applicable]"
- echo $n "[] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- default=1
- echo "<connect allow=\"$ALLOW_IP\" timeout=\"$TIMEOUT\">" >> $TEMP
- else
- echo "<connect allow=\"$ALLOW_IP\" password=\"$cc\" timeout=\"$TIMEOUT\>" >> $TEMP
- fi
- fi
-done
-if [ "$default" == "0" ] ; then
- echo "<connect allow=\"*\">" >> $TEMP
-fi
-
-###
-# Insert Line Break before deny
-###
-
-echo "" >> $TEMP
-
-
-###
-# Another part done
-###
-
-if [ "$default" == "0" ] ; then
- echo "No allow lines Specified, using defaults."
-fi
-echo ""
-echo ""
-echo "Now For the denies.. These will prevent users accessing the server, once again,"
-echo "entering nothing, or \"done\" will complete the cycle, and allow you to continue"
-echo ""
-echo "Enter the IP Address"
-ok=0
-while [ $ok -eq 0 ] ; do
- echo -e $n "[\033[1;32m$CONNECT_ALLOW\033[0;37m] -> $c"
- read cc
- if [ "$cc" == "done" ] ; then
- ok=1
- elif [ ! "$cc" ] ; then
- ok=1
- else
- echo "<connect deny=\"$cc\">" >> $TEMP
- fi
-done
-
-###
-# Footer Now
-###
-
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-clear
-echo "Ok, now thats finished, we come to oper Classes And Compositions. Due to the Nature"
-echo "of this, this Script will set the default tags, if you wish to change them, you will"
-echo "have to edit the Finished config manually, in most cases they shouldnt be changed."
-
-echo ""
-echo ""
-echo "Before we do that thou, i need to ask for the Domain name of your server, for example,"
-echo "chatspike.net. This will be used To generate your vhosts."
-echo -e $n "[\033[1;32m$VHOST_DOMAIN\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- VHOST_DOMAIN=$cc
-fi
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#- CLASS CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-" >> $TEMP
-echo "<class name=\"Shutdown\" commands=\"DIE RESTART REHASH\">" >> $TEMP
-echo "<class name=\"ServerLink\" commands=\"CONNECT SQUIT\">" >> $TEMP
-echo "<class name=\"BanControl\" commands=\"KILL GLINE KLINE ZLINE QLINE SHUN\">" >> $TEMP
-echo "<class name=\"OperChat\" commands=\"WALLOPS CHATOPS\">" >> $TEMP
-echo "<class name=\"HostCloak\" commands=\"SETHOST SETIDENT SETNAME\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-echo "#-#-#-#-#-#-#-#-#-#-#-#- OPERATOR COMPOSITION -#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "<type name=\"NetAdmin\" classes=\"OperChat BanControl HostCloak Shutdown ServerLink\" host=\"netadmin.$VHOST_DOMAIN\">" >> $TEMP
-echo "<type name=\"GlobalOp\" classes=\"OperChat BanControl HostCloak ServerLink\" host=\"ircop.$VHOST_DOMAIN\">" >> $TEMP
-echo "<type name=\"LocalOp\" classes=\"OperChat BanControl HostCloak\" host=\"local.$VHOST_DOMAIN\">" >> $TEMP
-echo "<type name=\"Helper\" classes=\"HostCloak\" host=\"helper.$VHOST_DOMAIN\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-clear
-echo "Yay, now comes the fun Part, time to specify Opers."
-
-echo ""
-echo ""
-echo "Ok, heres the deal, gonna ask you four questions, all require answering. They are as follows:"
-echo "1) The Opers Login, This part will replace <login> in /oper <login> <password>"
-echo "2) The Opers Password, This will replace <password> in /oper <login> <password>"
-echo "3) The Opers Host, The oper must be connecting from this host for /oper to work [user@host]"
-echo "4) The Opers Class, currently all avaliable are: \"NetAdmin\", \"GlobalOp\", \"LocalOp\" and \"Helper\""
-echo ""
-echo "You may re-configure the classes later, and if you enter nothing for part one, we will proceed to the next step"
-
-
-###
-# Stolen another few lines >;)
-###
-
-echo "#-#-#-#-#-#-#-#-#-#-#- OPERATOR CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-
-###
-# Done :p
-###
-
-ok=0
-while [ $ok -eq 0 ] ; do
- echo "Enter the opers login name"
- echo -e $n "[\033[1;32m$OPER_NICK\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- ok=1
- else
- OPER_LOGIN=$cc
- fi
- if [ $ok -eq 0 ] ; then
- ok2=0
- while [ $ok2 -eq 0 ] ; do
- echo "Enter the Opers Password"
- echo -e $n "[\033[1;32m$OPER_PASS\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- echo "You _MUST_ Enter a password"
- else
- OPER_PASS=$cc
- ok2=1
- fi
- done
- echo "Enter Opers Host [Format User@host]"
- echo -e $n "[\033[1;32m$OPER_HOST\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- OPER_HOST=$OPER_HOST
- else
- OPER_HOST=$cc
- fi
- echo "Enter Opers Type [Avaliable: NetAdmin, GlobalOp, LocalOp and Helper] CHOOSE ONLY ONE"
- echo -e $n "[\033[1;32m$OPER_TYPE\033[0;37m] -> $c"
- read cc
- if [ ! "$cc" ] ; then
- OPER_TYPE=$OPER_TYPE
- else
- OPER_TYPE=$cc
- fi
- echo "Coming for a re-run"
-
- echo "<oper name=\"$OPER_LOGIN\"" >> $TEMP
- echo " password=\"$OPER_PASS\"" >> $TEMP
- echo " host=\"$OPER_HOST\"" >> $TEMP
- echo " type=\"$OPER_TYPE\">" >> $TEMP
-
- fi
-done
-
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- RTFM LINE -#-#-#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "# You should know what to do here.. if not.. RTFM!! muahahahahaha #" >> $TEMP
-echo "" >> $TEMP
-echo "<die value=\"And god came down from the heavens and smote down the noob.\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-
-clear
-echo "Congratulations, Your Opers are configured!"
-echo ""
-echo ""
-echo "Right, i have guessed where you Message of the Day and Rules Files will be."
-echo "If these are correct, just hit return, else, type in the correct Location."
-echo ""
-echo "First The Message of the day."
-echo -e $n "[\033[1;32m$FILES_MOTD\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- FILES_MOTD=$cc
-fi
-echo ""
-echo "Right, now the Rules file."
-echo -e $n "[\033[1;32m$FILES_RULE\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- FILES_RULE=$cc
-fi
-
-echo "#-#-#-#-#-#-#-#-#-#- MISCELLANEOUS CONFIGURATION -#-#-#-#-#-#-#-#-#-" >> $TEMP
-echo "<files motd=\"$FILES_MOTD\"" >> $TEMP
-echo " rules=\"$FILES_RULE\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-clear
-echo "Module Time!!"
-echo ""
-echo ""
-echo "Enter the Names of the modules you wish to load, one at a time, below."
-echo "Type in the name, hit return, type in another one, etc. Once complete, just hit return to end."
-echo ""
-echo "The Following Modules are avaliable:"
-echo ""
-MODLINE=""
-for module in src/modules/*.cpp ; do
- desc=`grep '$ModDesc:' $module | sed 's/\/\* $ModDesc://' | sed 's/\*\///'`
- mod=`echo $module | sed 's/.cpp/.so/' | sed 's/src\/modules\///'`
- echo -e "\033[1;32m$mod\t\t\033[0;37m$desc"
-done
-echo ""
-
-###
-# Module Header :p
-###
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#-#- MODULE OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-
-###
-# End header
-###
-ok=0
-while [ "$ok" -eq 0 ] ; do
-echo $n "[] -> $c"
-read cc
-if [ "$cc" ] ; then
- echo "<module name=\"$cc\">" >> $TEMP
-else
- ok=1
-fi
-done
-
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-clear
-
-echo "This is it, The final set of Variables.. Then your config is complete."
-echo ""
-echo ""
-echo "These are just a few tiny Simple things, well explained.. BEGIN!"
-echo ""
-echo "Quit Prefix, This comes before all users Quits, it can be what you like."
-echo -e $n "[\033[1;32m$OP_PREFIX\033[0;37m] -> $c"
-read cc
-if [ $cc ] ; then
- OP_PREFIX=$cc
-fi
-
-echo ""
-echo "Maximum Number of results for a /who (Between 1 and 65535) Default 128."
-echo -e $n "[\033[1;32m$OP_MAWHO\033[0;37m] -> $c"
-if [ -z $cc ] ; then
- cc=$OP_MAWHO
-fi
-case "$cc" in
- ([0-9]*)
- OP_MAWHO=$cc
- ;;
-esac
-
-echo ""
-echo "Log level [debug, verbose, default, sparse, none]"
-echo -e $n "[\033[1;32m$OP_DEBUG\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- OP_DEBUG=$cc
-fi
-
-echo ""
-echo "Enable Halfops [Channel Mode +h], [yes/no]"
-echo -e $n "[\033[1;32m$OP_HALFY\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- OP_HALFY=$cc
-fi
-
-echo ""
-echo "Enable User Channel Protection [Channel Mode +a] [yes/no]"
-echo -e $n "[\033[1;32m$OP_PROTE\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- OP_PROTE=$cc
-fi
-
-echo ""
-echo "Enable Channel Founder? [Channel Mode +q] [yes/no]"
-echo -e $n "[\033[1;32m$OP_FOUND\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- OP_FOUND=$cc
-fi
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#-#- SERVER OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "<options prefixquit=\"$OP_PREFIX\"" >> $TEMP
-echo " loglevel=\"$OP_DEBUG\"" >> $TEMP
-echo " allowhalfop=\"$OP_HALFY\"" >> $TEMP
-echo " allowprotect=\"$OP_PROTE\"" >> $TEMP
-echo " allowfounder=\"$OP_FOUND\">" >> $TEMP
-echo " maxwho=\"$OP_MAWHO\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-
-ME=`pwd`
-DIR=$ME/conf/inspircd.conf
-echo ""
-echo "LAST QUESTION!!"
-echo "Where am i gonna be placed? [eg. $DIR]"
-echo -e $n "[\033[1;32m$DIR\033[0;37m] -> $c"
-read cc
-if [ "$cc" ] ; then
- DIR=$cc
-fi
-
-echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- YAWN -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#" >> $TEMP
-echo "# #" >> $TEMP
-echo "# You should already know what to do here :) #" >> $TEMP
-echo "" >> $TEMP
-echo "<die value=\"All l33t noobs must edit their configs.\">" >> $TEMP
-echo "" >> $TEMP
-echo "" >> $TEMP
-echo "#########################################################################" >> $TEMP
-echo "# #" >> $TEMP
-echo "# -InspIRCd Development and Coding Team- #" >> $TEMP
-echo "# www.inspircd.org #" >> $TEMP
-echo "# #" >> $TEMP
-echo "#########################################################################" >> $TEMP
-
-mv $TEMP $DIR
-echo -e "Complete."