hi every one i want to know meaning of this scrypt
if [ `uname` = SCO_SV ]
then
if [ "$TIME_SERVICE" = server ]
then
cp $ConfData/inf/ntp.conf /etc
cp $ConfData/inf/ntp.keys /etc
chown bin /etc/ntp.conf /etc/ntp.keys
chgrp bin /etc/ntp.conf /etc/ntp.keys
chmod 640 /etc/ntp.conf /etc/ntp.keys
File=/etc/inittab
Search=Ntp.Cntl
if [ -n "`fgrep $Search $File`" ]
then
LineNr=`fgrep -n $Search $File |cut -d: -f1
Cmd="$LineNr s/^# //\nw\nq"
echo "$Cmd" | ed -s $File >/dev/null
else
LineNr=`fgrep -n InfOmBoot $File | cut -d: -f1
Line="sm:2:once:/sys/inf/InfCall /sys/inf/Ntp.Cntl stop"
Line="$Line >/dev/null 2>&1"
Cmd="$LineNr a\n$Line\n.\nw\nq"
echo "$Cmd" | ed -s $File
fi
else
if [ -f /etc/ntp.conf ] ; then mv /etc/ntp.conf /etc/ntp.conf.save ; fi
if [ -f /etc/ntp.keys ] ; then mv /etc/ntp.keys /etc/ntp.keys.save ; fi
fi
fi
please help to resolve this scrypt