Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /sbin/ |
Upload File : |
#!/bin/sh set -e if [ -r /etc/default/ntpdate ]; then . /etc/default/ntpdate fi if [ "$NTPDATE_USE_NTP_CONF" = yes ]; then for f in /etc/ntp.conf /etc/openntpd/ntpd.conf; do if [ -r "$f" ]; then file=$f break fi done if [ -n "$file" ]; then NTPSERVERS=$(sed -rne 's/^(servers?|peer|pool)[[:space:]]+(-[46][[:space:]]+)?([-_.:[:alnum:]]+).*$/\3/p' "$file" | grep -v '^127\.127\.') || [ $? -le 1 ] fi fi if [ -r /run/ntpdate.dhcp ]; then . /run/ntpdate.dhcp fi exec /usr/sbin/ntpdate $NTPOPTIONS "$@" $NTPSERVERS