Files
html/api/v76-scripts/skill-ntp-sync.sh

7 lines
294 B
Bash
Executable File

#!/bin/bash
# V27 V89 scale - Opus WIRE continue - Skill: ntp-sync
# Description: NTP sync status
# Whitelist-safe timeout 8s
set -e
timeout 8 bash -c 'timedatectl status 2>/dev/null | grep 'synchronized' | head -1' 2>&1 || echo "{\"skill\":\"ntp-sync\",\"error\":\"timeout_or_missing_tool\"}"