diff --git a/xCAT/postscripts/setupntp.traditional b/xCAT/postscripts/setupntp.traditional index 90b0e223e..959ab905f 100755 --- a/xCAT/postscripts/setupntp.traditional +++ b/xCAT/postscripts/setupntp.traditional @@ -44,7 +44,7 @@ is_lsb_cumulus () } logger -t xcat "Install: Setup NTP" -# Use the ntpservers defined in the site table, if they exist. +# Use the ntpservers defined in the site table, if they exist. # If the value of ntpservers is use the service node or # the management node as the ntp server. if [ $NTPSERVERS ]; then @@ -68,7 +68,7 @@ if [ $NTPSERVERS ]; then master=$i setup=1 fi - done + done if [ $setup -eq 0 ]; then echo "server $master" >$conf_file fi @@ -92,9 +92,9 @@ if [ $OS_TYPE = Linux ]; then chown ntp /var/lib/ntp if ( pmatch $OSVER "sles*" ) || ( pmatch $OSVER "suse*" ) || [ -f /etc/SuSE-release ];then echo "driftfile /var/lib/ntp/drift/ntp.drift" >>$conf_file - else + else echo "driftfile /var/lib/ntp/drift" >>$conf_file - fi + fi echo "disable auth" >>$conf_file echo "restrict 127.0.0.1" >>$conf_file @@ -117,7 +117,7 @@ if [ $OS_TYPE = Linux ]; then fi msg='syncing the clock ...' - logger -t xcat $msg + logger -t xcat $msg echo $msg if ! timeout 120 ntpd -gq > /dev/null 2>&1 ; then if ! ntpdate -t5 $master > /dev/null 2>&1; then @@ -192,14 +192,14 @@ disable auth broadcastclient restrict 127.0.0.1" >>$conf_file - stopsrc -s xntpd + stopsrc -s xntpd logger -t xcat "ntpdate -t5 $master " - ntpdate -t5 $master + ntpdate -t5 $master if [ "$?" != "0" ] then echo " ntpdate -t5 $master failed " logger -t xcat "ntpdate -t5 $master failed" fi - /usr/sbin/chrctcp -S -a xntpd + /usr/sbin/chrctcp -S -a xntpd fi -exit $exit_code +exit $exit_code