#!/bin/sh
#--------------------------------------------------------------------
# Config for tbbsV1.3.xx
# configuration program for tbbs
# WARNIG : This program is alpha !
#
# If you have any problems or bugs with this program, 
# please let me know.
#
# This script needs dialog 0.4
# 
# (c) 1995   <runge@nina.boerde.de>
#

#Your favorite editor
#EDITOR="joe " 
EDITOR=`cat ../etc/config/EDITOR`

#Your 'Multimedia-Editor'
WENDY=`cat ../etc/config/M.EDITOR`

LESS=`cat ../etc/config/LESS`



# tempory file
TEMP=/tmp/tbbs.setup/config.answers

# config file
CONFIG_BACK=/tmp/config.backup


CONFIG=/tmp/tbbs.config




# ---------------- main() -------------------------------------
file_main() {
echo "wait....."
while true 
do

dialog --title "User-Filebase - Admininstration " \
   --menu "\n\
\n\
At this time the tbbs-setup-script is verry expermiental!\n\
comment: all menu-entry with \"!\" at the begin of the line\n\
         are until now present. " 22 70 9 \
  1 "!index-option for bbs-list " \
  2 "!                          " \
  3 "!                          " \
  4 "ADM-Filemanager            " \
  e "---------------------------" \
  f "Quit       : main-menu" \
2> $TEMP

#cat $TEMP
#sleep 5

    if [ ! $? = 0 ]; then
     exit
    fi


choice=`cat $TEMP`
case $choice in
   0) exit;;
   1) do_noimpl;;
   2) do_noimpl;;
   3) do_noimpl;;
   4) ../bin/sysfileman;;
   e) ;;
   f) clear;
      echo "return to main..."
      exit;
esac
done
}  

while true
do 
  file_main
done
