Bug#260303: base-config: hwclock | cut doesn't work in some locales
* Colin Watson <cjwatson@debian.org> [2004-07-19 21:21]:
> http://www.no-name-yet.com/patches/base-config.hwclock-cut.diff
--- base-config.orig/tzsetup 2004-06-27 19:37:07.000000000 +0100
+++ base-config/tzsetup 2004-07-19 20:46:56.000000000 +0100
@@ -137,9 +137,9 @@
db_set tzconfig/gmt false
fi
- # The cut removes info about drift from the
+ # The sed removes info about drift from the
# hwclock output.
- db_subst tzconfig/gmt hwtime $(hwclock --show --localtime | cut -d ' ' -f 1-6)
+ db_subst tzconfig/gmt hwtime $(hwclock --show --localtime | sed 's/ .*//')
db_fset tzconfig/gmt seen false
db_input high tzconfig/gmt || true
fi
--
Martin Michlmayr
tbm@cyrius.com
Reply to: