core-agent-linux/qubes-rpc/sync-ntp-clock
2013-03-14 04:25:31 +01:00

13 řádky
293 B
Bash
Spustitelný soubor

#!/bin/sh
if [ -x /usr/libexec/ntpdate-wrapper ]; then
/usr/libexec/ntpdate-wrapper
elif [ -x /etc/init.d/ntpdate ]; then
/etc/init.d/ntpdate restart
elif [ -x /usr/sbin/ntpdate ]; then
/usr/sbin/ntpdate pool.ntp.org
else
echo "No ntpdate installed, giving up."
exit 1
fi