#ident	"@(#)initpkg:common/cmd/initpkg/init.d/sysetup	1.4.8.2"
#ident "$Header: /sms/sinixV5.4es/rcs/s19-full/usr/src/cmd/initpkg/init.d/sysetup,v 1.1 91/02/28 17:37:16 ccs Exp $"

#   This file contains system setup requirements for the system.
  
#   First, the ps_data file is always removed so that the ps command
#   will be forced to read the /unix file, since it may have been
#   created recently.

# Clear all working privileges.
priv -allprivs work

set `LC_ALL=C /sbin/who -r`
if [ $9 != "S" -a $9 != "1" ]
then
	exit
fi

#   recreate /etc/ps_data in the background while the boot continues

/usr/bin/rm -f /etc/ps_data
/usr/bin/ps >/dev/null 2>&1 &

#   if the prtconf command exists, then, the system configuration
#   is printed

if [ -x /usr/sbin/prtconf ]
then
	/usr/sbin/prtconf
fi

#  If there are trademark files, print them.

if [ -d /etc/tm ]
then
	/usr/bin/cat /etc/tm/* 2> /dev/null
fi
