From 61774172bf17a57946787ee5184953c6989bd6bf Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 14 Nov 2008 14:07:15 -0800 Subject: Remove extra call to set hwclock on startup Reading hwclock takes 1.5 seconds, and gets done twice. Only once is needed. --- debian/vyatta-cfg-system.postinst.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian') diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index dff04293..c423c6b3 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -11,6 +11,11 @@ for init in ntp ssh snmpd openhpid vyatta-keepalived ipvsadm dnsmasq ddclient; d update-rc.d -f ${init} remove >/dev/null done +# remove extra call to clock setup only need one +if [ -L /etc/rcS.d/S08hwclockfirst.sh -a /etc/rcS.d/S11hwclock.sh ]; then + rm /etc/init.d/rcS.d/S11hwclock.sh +fi + case `grep '^RULES_FILE=' /lib/udev/write_net_rules` in *z25_persistent-net.rules* ) vyatta_net_rules=z24_vyatta-net.rules;; -- cgit v1.2.3