blob: 6c563a1c827207564312ba1bac391a370d449c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- a/debian/adjtimexconfig
+++ b/debian/adjtimexconfig
@@ -3,6 +3,11 @@
conffile=/etc/conf.d/adjtimex
startfile=/etc/init.d/adjtimex
+# Get UTC setting
+source /etc/conf.d/clock
+params=''
+[ "$CLOCK" == "UTC" ] && params='--utc'
+
echo -n "Comparing clocks (this will take 70 sec)..."
# Get the parameters
@@ -11,7 +16,7 @@
baseline=`awk '/<= tick/{print ($1+$NF)/2}' /etc/adj.adjust`
hz=`awk '/USER_HZ/{print $3}' /etc/adj.adjust`
/usr/sbin/adjtimex --tick $baseline --frequency 0
-/usr/sbin/adjtimex --adjust --force-adjust >/etc/adj.adjust
+/usr/sbin/adjtimex ${params} --adjust --force-adjust >/etc/adj.adjust
echo "done."
ticks=`tail -n 1 /etc/adj.adjust|awk '{print $6}'`
freq=`tail -n 1 /etc/adj.adjust|awk '{print $7}'`
|