From 0d0f5543ded40fe9ff8d03078cadb0cd8df7a840 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Thu, 20 Aug 2015 14:52:17 -0400 Subject: [PATCH] Add wide char * todo the pmatch of output --- xCAT/postscripts/setupntp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/setupntp b/xCAT/postscripts/setupntp index e017c5ae7..e1de5be59 100755 --- a/xCAT/postscripts/setupntp +++ b/xCAT/postscripts/setupntp @@ -121,7 +121,7 @@ restrict 127.0.0.1" >>$conf_file logger -t xcat "$cmd" output=`eval $cmd 2>&1` rc=$? - if [ "$rc" != "0" ] || (pmatch "$output" "Time could not*");then + if [ "$rc" != "0" ] || (pmatch "$output" "*Time could not*");then echo "$cmd failed, NTP maynot be synchronized, please wait for NTP synchronized then run updatenode nodename -P setupntp" logger -t xcat "$cmd failed" exit 1