Ticket #8765: rdate-ntp_running.diff

File rdate-ntp_running.diff, 507 bytes (added by steelman, 6 years ago)

don't start rdate if ntpclient is running

  • package/base-files/files/etc/hotplug.d/iface/40-rdate

     
    4141        fi 
    4242} 
    4343 
     44NTP_RUNNING=`ps  | grep $NTPC | grep -v grep` 
     45 
    4446case "$ACTION" in 
    45         ifup) route -n | grep -q ^0.0.0.0 && sync_rdate;; 
     47        ifup) route -n | grep -q ^0.0.0.0 && [ -z "$NTP_RUNNING" ] && sync_rdate;; 
    4648esac