Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 395839
Collapse All | Expand All

(-)adjtimex-1.29-debian/debian/adjtimexconfig (-1 / +13 lines)
Lines 3-8 Link Here
3
conffile=/etc/default/adjtimex
3
conffile=/etc/default/adjtimex
4
startfile=/etc/init.d/adjtimex
4
startfile=/etc/init.d/adjtimex
5
5
6
# Get UTC setting
7
params=''
8
if [ -f /etc/conf.d/clock ]; then
9
    #baselayout-1
10
    source /etc/conf.d/clock
11
    [ "$CLOCK" == "UTC" ] && params='--utc'
12
elif [ -f /etc/conf.d/hwclock ]; then
13
    #baselayout-2
14
    source /etc/conf.d/hwclock
15
    [ "$clock" == "UTC" ] && params='--utc'
16
fi
17
6
echo -n "Comparing clocks (this will take 70 sec)..."
18
echo -n "Comparing clocks (this will take 70 sec)..."
7
19
8
# Get the parameters
20
# Get the parameters
Lines 11-17 Link Here
11
baseline=`awk '/<= tick/{print ($1+$NF)/2}' /etc/adj.adjust`
23
baseline=`awk '/<= tick/{print ($1+$NF)/2}' /etc/adj.adjust`
12
hz=`awk '/USER_HZ/{print $3}' /etc/adj.adjust`
24
hz=`awk '/USER_HZ/{print $3}' /etc/adj.adjust`
13
/usr/sbin/adjtimex  --tick $baseline  --frequency 0
25
/usr/sbin/adjtimex  --tick $baseline  --frequency 0
14
/usr/sbin/adjtimex  --adjust --force-adjust >/etc/adj.adjust
26
/usr/sbin/adjtimex  ${params} --adjust --force-adjust >/etc/adj.adjust
15
echo "done."
27
echo "done."
16
ticks=`tail -n 1 /etc/adj.adjust|awk '{print $6}'`
28
ticks=`tail -n 1 /etc/adj.adjust|awk '{print $6}'`
17
freq=`tail -n 1 /etc/adj.adjust|awk '{print $7}'`
29
freq=`tail -n 1 /etc/adj.adjust|awk '{print $7}'`

Return to bug 395839