satip-axe/fs-add/etc/init.d/ntpd
2015-05-22 21:57:01 +02:00

9 lines
217 B
Bash
Executable File

#!/bin/sh
while test ! -f /tmp/nontpd; do
NTPD_OPTS=""
test -r /etc/sysconfig/config && . /etc/sysconfig/config
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
/usr/sbin/ntpd -n -I eth0 $NTPD_OPTS
done