#!/bin/sh
#
#    Copyright (c) 2002 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    File name:   configchassisPdmTrig
#
#    PDM trigger file to update /etc/fabos/fabos.chassis.conf
#
export PATH=/fabos/sbin:/fabos/bin:/bin:/usr/bin:/sbin

# Make sure there's exactly 3 argument
if ! [ $# -eq 3 ]; then
#	echo Invalid number of arguments: $#
	exit
fi

filename=`echo $1 | sed -e 's/\/mnt//g'`
echo first argument is $1
echo filename is $filename

cp $1 $filename

/fabos/libexec/inetdUpdate
/fabos/libexec/sysCfgUpdate


