#!/bin/sh
#
# Copyright (C) 2002-2004 by NCHC, Steven Shiau, K. L. Huang
# (steven@nchc.org.tw, c00hkl00@nchc.org.tw)
#
# This program 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.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source DRBL setting
. /opt/drbl/conf/drbl.conf

# Source the drbl related functions
. $DRBL_SCRIPT_PATH/sbin/drbl-functions

PARAM="$@"
echo "******************************************************"
# get the distribution name
OS_Version=`check_distribution_name`
echo "******************************************************"

case "$OS_Version" in
"RH8.0"|"RH9"|"RHFC1"|"RHFC2")
            echo "The version number you entered is $OS_Version."
	    $drbl_setup_path/drblsrv-rh $PARAM
            ;;
"MDK9.2"|"MDK10.0")
            echo "The version number you entered is $OS_Version."
	    $drbl_setup_path/drblsrv-mdk $PARAM
            ;;
*)
            echo "This version is NOT supported by DRBL, program stop!."
            echo "Please press ctrl-c to stop the program!"
            exit 1 
esac
