[commit] r2416 - in trunk: user/ntpclient vendors/Nintendo/DLDI vendors/Nintendo/common vendors/Nintendo/common/rc.d
dslinux_sonny_jim at dslinux.in-berlin.de
dslinux_sonny_jim at dslinux.in-berlin.de
Sun Jan 18 12:13:17 CET 2009
Author: dslinux_sonny_jim
Date: Sun Jan 18 12:13:16 2009
New Revision: 2416
Log:
Adding ntpclient and rc.d scripts. Enabling in DLDI builds
Added:
trunk/user/ntpclient/
- copied from r2415, /tags/ntpclient/ntpclient-2007-365/
trunk/vendors/Nintendo/common/rc.d/ntpclient
Modified:
trunk/user/ntpclient/Makefile
trunk/vendors/Nintendo/DLDI/config.vendor
trunk/vendors/Nintendo/common/rc.common
trunk/vendors/Nintendo/common/rc.defaults
Modified: trunk/user/ntpclient/Makefile
==============================================================================
--- /tags/ntpclient/ntpclient-2007-365/Makefile (original)
+++ trunk/user/ntpclient/Makefile Sun Jan 18 12:13:16 2009
@@ -12,7 +12,7 @@
# CFLAGS += -DPRECISION_SIOCGSTAMP
CFLAGS += -DENABLE_DEBUG
CFLAGS += -DENABLE_REPLAY
-# CFLAGS += -DUSE_OBSOLETE_GETTIMEOFDAY
+CFLAGS += -DUSE_OBSOLETE_GETTIMEOFDAY
LDFLAGS += -lrt
Modified: trunk/vendors/Nintendo/DLDI/config.vendor
==============================================================================
--- trunk/vendors/Nintendo/DLDI/config.vendor (original)
+++ trunk/vendors/Nintendo/DLDI/config.vendor Sun Jan 18 12:13:16 2009
@@ -298,7 +298,7 @@
# CONFIG_USER_NETSTAT_NAT_NETSTAT_NAT is not set
CONFIG_USER_NGREP=y
CONFIG_LIB_LIBPCAP=y
-# CONFIG_USER_NTPCLIENT_NTPCLIENT is not set
+CONFIG_USER_NTPCLIENT_NTPCLIENT=y
# CONFIG_USER_NTPCLIENT_ADJTIMEX is not set
# CONFIG_USER_NTPD_NTPD is not set
# CONFIG_USER_NTPD_NTPDATE is not set
Modified: trunk/vendors/Nintendo/common/rc.common
==============================================================================
--- trunk/vendors/Nintendo/common/rc.common (original)
+++ trunk/vendors/Nintendo/common/rc.common Sun Jan 18 12:13:16 2009
@@ -78,6 +78,16 @@
echo "Not starting iptables: network is down"
fi
fi
+# Start ntpclient
+if [ "$start_ntpclient" = "YES" ]
+then
+ if [ "$__network_up" = "YES" ]
+ then
+ /etc/rc.d/ntpclient start
+ else
+ echo "Not starting ntpclient: network is down"
+ fi
+fi
# start inetd if configured
if [ "$start_inetd" = "YES" ]
then
Modified: trunk/vendors/Nintendo/common/rc.defaults
==============================================================================
--- trunk/vendors/Nintendo/common/rc.defaults (original)
+++ trunk/vendors/Nintendo/common/rc.defaults Sun Jan 18 12:13:16 2009
@@ -170,4 +170,9 @@
# To start the hinged daemon, change to "YES"
start_hinged="NO"
+# Specify a ntp server for ntpclient
+# otherwise leave blank for the default
+start_ntpclient="YES"
+ntpserver=""
+
# End of file.
More information about the dslinux-commit
mailing list