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

#touch /test.txt
#echo "============================================" >> /test.txt
#echo "file fabos.chassis.conf updated" >> /test.txt
#echo "============================================" >> /test.txt
cmd=`cat /etc/fabos/fabos.chassis.conf | grep "system.tcptimestamp"`
if [ "$cmd" != "" ]; then
	#echo $cmd >> /test.txt
	mode="${cmd: -1}"
	#echo $mode >> /test.txt
	echo $mode > /proc/sys/net/ipv4/tcp_timestamps
fi
