befor: [ "$LKP_SERVER"=inn ] || return ntpdate -b $LKP_SERVER
the ntpdate command can't run
after: [ -n "$LKP_SERVER" ] || return ntpdate -b $LKP_SERVER
now, if $LKP_SERVER is ok, it can synchronised the time
Signed-off-by: Wang Chenglong 18509160991@163.com --- lib/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bootstrap.sh b/lib/bootstrap.sh index f8a98de6..0be7ed3b 100755 --- a/lib/bootstrap.sh +++ b/lib/bootstrap.sh @@ -188,7 +188,7 @@ clearlinux_timesync() run_ntpdate() { [ -z "$NO_NETWORK" ] || return - [ "$LKP_SERVER" = inn ] || return + [ -n "$LKP_SERVER" ] || return is_clearlinux && clearlinux_timesync && return
[ -x '/usr/sbin/ntpdate' ] || return