#!/bin/sh
#
# $Id: dtconfig.src,v 1.7 1997/04/23 00:25:59 vic Exp $
#
# This version of the TED dtconfig script is for use in the Linux
# operating environment.
#
# TriTeal Enterprise Desktop
#
# (c) Copyright 1995-1997 TriTeal Corporation
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
# Novell, Inc.
#
# This script can be run after TED installation to configure TED within
# the host platforms operating environment. For example, when auto-start
# is selected, the TED desktop login window will be displayed at end of the
# workstation\'s power up boot cycle.
#
# Location: /usr/dt/bin/dtconfig
#
# Allow for configured and factory versions of dtlogin.rc
#
if [ -f /etc/dt/config/dtlogin.rc ]
then
RC_MASTER=/etc/dt/config/dtlogin.rc
elif [ -f /usr/dt/config/dtlogin.rc ]
then
RC_MASTER=/usr/dt/config/dtlogin.rc
fi
set `/usr/bin/id`
if [ $1 != "uid=0(root)" ]; then
echo "$0: this script must be run as root"
exit 1
fi
if [ $arg_count -ne 1 ]; then
echo " "
#
# Display error message for too many arguments
#
if [ $arg_count -gt 1 ]; then
echo "Usage: Too many arguments"
#
# Display error message for NULL arguments passed
#
elif [ $arg_count -eq 0 ]; then
echo "Usage: Needs one argument"
fi
usage_error
exit 1
fi
rc_master_check() {
if [ ! -x $RC_MASTER ]; then
echo "option failed"
echo "could not execute $RC_MASTER"
exit 1
fi
}