Ticket #175 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

'init.d/hwclock stop' script barfs on stderr with busybox

Reported by: natanael.copa@gmail.com Owned by: roy
Priority: trivial Milestone:
Component: rc Version: 0.4
Keywords: Cc:

Description

busybox sends the --help text to stderr so it shows on screen. The fix is trivial:

Index: hwclock.in
===================================================================
--- hwclock.in	(revision 1571)
+++ 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

Attachments

openrc-hwclock.patch Download (429 bytes) - added by natanael.copa@gmail.com 15 months ago.
openrc-hwclock.patch

Change History

Changed 15 months ago by natanael.copa@gmail.com

openrc-hwclock.patch

comment:1 Changed 15 months ago by roy

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.