c99d72a179
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
41 lines
710 B
Bash
Executable File
41 lines
710 B
Bash
Executable File
#!/bin/ksh
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
#egan@us.ibm.com
|
|
#(C)IBM Corp
|
|
#
|
|
|
|
. $XCATROOT/lib/functions
|
|
|
|
if TIMESERVERS=$(tabdb $SITETAB timeservers 1)
|
|
then
|
|
:
|
|
else
|
|
echo "$0: timeservers not defined in $SITETAB" | logger -t xcat
|
|
exit
|
|
fi
|
|
|
|
logger -t xcat "Install: Setup NTP"
|
|
|
|
for i in $(echo $TIMESERVERS | tr ',' ' ')
|
|
do
|
|
echo "server $i.$DOMAIN"
|
|
done >/etc/ntp.conf
|
|
|
|
mkdir -p /etc/ntp
|
|
chown ntp /etc/ntp
|
|
|
|
echo "driftfile /etc/ntp/drift
|
|
multicastclient
|
|
broadcastdelay 0.008
|
|
authenticate no
|
|
keys /etc/ntp/keys
|
|
trustedkey 65535
|
|
requestkey 65535
|
|
controlkey 65535" >>/etc/ntp.conf
|
|
|
|
for i in $(echo $TIMESERVERS | tr ',' ' ')
|
|
do
|
|
echo "$i.$DOMAIN"
|
|
done >/etc/ntp/step-tickers
|
|
|