#!/bin/sh
# Copyright 1999 American Power Conversion, All Rights Reserved
#
# Revision History:
#     jlapre 3July1999 initial revision
#
if [ -f "/etc/vma-release" -o -f "/etc/vima-release" ]; then
	LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vmware/vma/lib64:/opt/vmware/vma/lib
	export LD_LIBRARY_PATH
	export PERL_LWP_SSL_VERIFY_HOSTNAME=0
	/bin/sleep $1s
	/bin/sleep 10s
	perl ./bin/shutdownhost.pl --operation shutdown --username xxxxx --password xxxx
	
	
else
	/bin/sleep $1s
	/bin/sleep 10s
	/sbin/shutdown -h now  "PowerChute Buisness Edition has initiated a system shutdown."
fi
