#!/bin/sh
#
# Copyright 2002 Dell Computer Corp
#
# Initial script: 2002-09-12 Rez Kabir
 

#Common header items, import function definitions
DIR=$(dirname $0)
DIR=$(cd $DIR; pwd)

. $DIR/../functions.sh

# The purpose of this script is to add CPG specific configuration

	#set PLATFORM variable
	platform
	logecho "We are running on platform --:${PLATFORM}:--"
	if echo ${PLATFORM} | grep -q PowerEdge ; then
		#only run if we are _NOT_ on a PowerEdge server
		logecho "  This platform looks like a PowerEdge server, skipping."
		exit
	fi

# ------------------------------------------------------------------------------
logecho "Change runlevel for CPG platforms to 5"
# ------------------------------------------------------------------------------

	#Change to runlevel 5
  	sed '/^id/s/\([^ ]*\):[1-6]:\([^ ]*\)/\1:5:\2/' /etc/inittab > /etc/inittab.new
  	mv -f /etc/inittab.new /etc/inittab

