support external ntp server.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2012-02-13 06:35:33 +00:00
parent c1073c7699
commit e96d29b8a5

View File

@ -90,7 +90,21 @@ else
mv -f $conf_file $conf_file_backup
fi
fi
echo "server $master" >$conf_file
if [ $NTPSERVERS ]; then
if [ "$NTPSERVERS" = "&lt;xcatmaster&gt;" ] || [ "$NTPSERVERS" = "<xcatmaster>" ]; then
echo "server $master" >>$conf_file
else
for i in $(echo $NTPSERVERS | tr ',' ' ')
do
echo "server $i" >>$conf_file
master=$i
done
fi
else
echo "server $master" >$conf_file
fi
fi
OS_TYPE=`uname`