mir3c/squashfs-root/etc/hotplug.d/iface/40-ntpd

10 lines
234 B
Plaintext
Raw Normal View History

2018-05-25 08:49:31 +00:00
#!/bin/sh
logger -p notice -t "hotplug.d" "ntpd: run because of $INTERFACE $ACTION"
[ "$ACTION" = "ifup" ] || exit 0
if [ "$INTERFACE" = "wan" -o "$INTERFACE" = "lan" ]; then
/usr/sbin/ntpsetclock post once >/dev/null 2>&1 &
fi