aboutsummaryrefslogtreecommitdiffstats
path: root/core/openrc/openrc-hwclock.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-11 06:51:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-11 06:51:15 +0000
commit46719e84a19137960bf547e1813dadf87bc8aaeb (patch)
treeba7375de73ef8fa5edefcd9939cb4537a02638b0 /core/openrc/openrc-hwclock.patch
parent3fe927c19c9a49ee5fec05135d9bcf726d05c2cc (diff)
downloadaports-46719e84a19137960bf547e1813dadf87bc8aaeb.tar.bz2
aports-46719e84a19137960bf547e1813dadf87bc8aaeb.tar.xz
core/openrc: fix for hwclock stop
Diffstat (limited to 'core/openrc/openrc-hwclock.patch')
-rw-r--r--core/openrc/openrc-hwclock.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/openrc/openrc-hwclock.patch b/core/openrc/openrc-hwclock.patch
new file mode 100644
index 0000000000..593e9ba82f
--- /dev/null
+++ b/core/openrc/openrc-hwclock.patch
@@ -0,0 +1,13 @@
+Index: hwclock.in
+===================================================================
+--- a/init.d/hwclock.in (revision 1571)
++++ b/niit.d/hwclock.in (working copy)
+@@ -118,7 +118,7 @@
+
+ if ! yesno $clock_adjfile; then
+ # Some implementations don't handle adjustments
+- if LC_ALL=C hwclock --help | grep -q "\-\-noadjfile"; then
++ if LC_ALL=C hwclock --help 2>&1 | grep -q "\-\-noadjfile"; then
+ utc_cmd="$utc_cmd --noadjfile"
+ fi
+ fi