diff options
author | 2013-04-07 00:11:37 +0000 | |
---|---|---|
committer | 2013-04-07 00:11:37 +0000 | |
commit | e42d605f53c318981f3a550517bc19e2f509cbb1 (patch) | |
tree | cebb2542deb99d435846e18359cfe661142078e8 /net-misc/adjtimex/files | |
parent | Bump media-sound/beets to 1.1.0_beta3, remove old version (diff) | |
download | historical-e42d605f53c318981f3a550517bc19e2f509cbb1.tar.gz historical-e42d605f53c318981f3a550517bc19e2f509cbb1.tar.bz2 historical-e42d605f53c318981f3a550517bc19e2f509cbb1.zip |
BL2 support per bug #395839.
Package-Manager: portage-2.2.0_alpha171/cvs/Linux x86_64
Diffstat (limited to 'net-misc/adjtimex/files')
-rw-r--r-- | net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch b/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch new file mode 100644 index 000000000000..ac8730d1ee7d --- /dev/null +++ b/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch @@ -0,0 +1,30 @@ +--- adjtimex-1.29-debian/debian/adjtimexconfig 2011-12-23 21:29:32.962449759 +0100 ++++ adjtimex-1.29/debian/adjtimexconfig 2011-12-23 21:30:00.610638657 +0100 +@@ -3,6 +3,18 @@ + conffile=/etc/default/adjtimex + startfile=/etc/init.d/adjtimex + ++# Get UTC setting ++params='' ++if [ -f /etc/conf.d/clock ]; then ++ #baselayout-1 ++ source /etc/conf.d/clock ++ [ "$CLOCK" == "UTC" ] && params='--utc' ++elif [ -f /etc/conf.d/hwclock ]; then ++ #baselayout-2 ++ source /etc/conf.d/hwclock ++ [ "$clock" == "UTC" ] && params='--utc' ++fi ++ + echo -n "Comparing clocks (this will take 70 sec)..." + + # Get the parameters +@@ -11,7 +23,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}'` |