Browse Source

修改获取ntp状态命令

dygapp 4 years ago
parent
commit
c6874c6fbe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      config/shells.js

+ 2 - 1
config/shells.js

@@ -94,7 +94,8 @@ module.exports = {
 
 
   // ntp时间同步命令
   // ntp时间同步命令
   setNtp: value => `timedatectl set-ntp ${value}`,
   setNtp: value => `timedatectl set-ntp ${value}`,
-  getNtp: 'timedatectl show -p NTP --value',
+  // getNtp: 'timedatectl show -p NTP --value',
+  getNtp: "timedatectl | grep Network |awk -F '[ ]' '{print $NF}'",
 
 
   // 连接测试
   // 连接测试
   // ping 192.168.88.10
   // ping 192.168.88.10