#!/bin/sh # # $Id$ # # Hatch script for MBSE BBS. # #============================================================================ # Copyright (C) 1997-2008 # # Michiel Broek FIDO: 2:280/2802 # Beekmansbos 10 # 1971 BV IJmuiden # the Netherlands # # This file is part of MBSE BBS. # # This BBS is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2, or (at your option) any # later version. # # MBSE BBS is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with MBSE BBS; see the file COPYING. If not, write to the Free # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. #============================================================================ # # Global settings, change as needed: # # Password, see menu 1.10.2 # HATCHPWD="DizIzMyBIGseeKret" INBOUND=$MBSE_ROOT/var/inbound HVERSION="1.0.3" if [ "`id -un`" != "mbse" ]; then echo "This program may only be used by user 'mbse'" exit 1 fi if [ "DizIzMyBIGseeKret" == "${HATCHPWD}" ]; then echo "This script is not yet configured, first edit this script before use!" exit 1 fi cat < $FILE echo "Created MBSE BBS hatch script v$HVERSION" >> $FILE echo "Area $GROUP" >> $FILE if [ ! -z "$REPL" ]; then echo "Replaces $REPL" >> $FILE fi if [ ! -z "$MAGIC" ]; then echo "Magic $MAGIC" >> $FILE fi echo "Origin $AKA" >> $FILE echo "From $AKA" >> $FILE echo "File $f" >> $FILE echo "Fullname $f" >> $FILE echo "Pth `pwd`" >> $FILE echo "Desc $DESC" >> $FILE echo "Pw $HATCHPWD" >> $FILE echo -e "\nFile hatched\n" fi fi done echo -e "\nTotal $i files hatched in area $GROUP." echo "Start processing TIC files" $MBSE_ROOT/bin/mbfido tic