public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/
Date: Tue, 25 Oct 2011 02:37:12 +0000 (UTC)	[thread overview]
Message-ID: <0e5d3bfc530c4c6607e0f04ab7f24770070b9cc7.WilliamH@gentoo> (raw)

commit:     0e5d3bfc530c4c6607e0f04ab7f24770070b9cc7
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 25 02:04:23 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 02:34:57 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/livecd-tools.git;a=commit;h=0e5d3bfc

further cosmetic cleanups

There were several einfo calls which ended with "...". These have been converted
to ebegins and appropriate eend, eindent and eoutdent calls were
inserted.

X-Gentoo-Bug: 388401
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=388401

---
 init.d/autoconfig |    5 ++++-
 init.d/firmware   |    7 +++++--
 init.d/fixinittab |   13 +++++++++----
 init.d/hwsetup    |    3 ++-
 init.d/unmute     |    3 ++-
 5 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/init.d/autoconfig b/init.d/autoconfig
index 056ff85..7511366 100755
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -376,12 +376,13 @@ detect_sparc() {
 }
 
 start() {
-	einfo "Starting autoconfig ..."
+	ebegin "Starting autoconfig"
 	echo "0" > /proc/sys/kernel/printk
 	get_config
 
 	if yesno "${DETECT}"
 	then
+		eindent
 		ebegin "Hardware detection started"
 			local numcpu="$(grep -c '^processor[[:space:]]\+:' /proc/cpuinfo)"
 			local arch="$(uname -m)"
@@ -421,6 +422,7 @@ start() {
 			esac
 			[ -n "${PC}" ] && einfo "${PC}"
 		eend
+		eoutdent
 	else
 		ewarn "Hardware detection disabled via cmdline ..."
 	fi
@@ -567,6 +569,7 @@ start() {
 		reset
 		chvt 1
 	fi
+	eend $?
 }
 
 # vim: ts=4

diff --git a/init.d/firmware b/init.d/firmware
index 30d07c9..c5534b9 100755
--- a/init.d/firmware
+++ b/init.d/firmware
@@ -10,13 +10,16 @@ depend() {
 }
 
 start() {
-einfo "Checking for firmware to unpack ..."
+	ebegin "Checking for firmware to unpack"
 	if [ -e /lib/firmware.tar.bz2 ]
 	then
-		ebegin "Unpacking firmware ..."
+		eindent
+		ebegin "Unpacking firmware"
 		mkdir -p /lib/firmware
 		tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
 		eend 0
+		eoutdent
 	fi
 	[ -x /sbin/udevadm ] && /sbin/udevadm trigger
+	eend $?
 }

diff --git a/init.d/fixinittab b/init.d/fixinittab
index c5ca55c..36bdc27 100755
--- a/init.d/fixinittab
+++ b/init.d/fixinittab
@@ -12,7 +12,7 @@ start()
 		return 1
 	fi
 
-	einfo "Adjusting inittab ..."
+	ebegin "Adjusting inittab"
 	# Create a backup
 	cp -f /etc/inittab /etc/inittab.old
 
@@ -62,8 +62,11 @@ start()
 		fi
 		if [ -c "/dev/hvc0" ]
 		then
-			einfo "Adding hvc console to inittab ..."
+			eindent
+			ebegin "Adding hvc console to inittab ..."
 			echo "s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt320" >> /etc/inittab
+			eend $?
+			eoutdent
 		fi
 
 	# The rest...
@@ -75,8 +78,11 @@ start()
 				echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab
 			done
 		else
-			einfo "Adding ${LIVECD_CONSOLE} console to inittab ..."
+			eindent
+			ebegin "Adding ${LIVECD_CONSOLE} console to inittab"
 			echo "s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+			eend $?
+			eoutdent
 		fi
 	fi
 
@@ -99,5 +105,4 @@ start()
 	telinit q
 
 	eend 0
-	return 0
 }

diff --git a/init.d/hwsetup b/init.d/hwsetup
index 60e1bb4..a13e3be 100755
--- a/init.d/hwsetup
+++ b/init.d/hwsetup
@@ -8,7 +8,8 @@ depend() {
 }
 
 start() {
-	einfo "Starting hwsetup ..."
+	ebegin "Starting hwsetup"
 	[ -e /etc/sysconfig ] || mkdir -p /etc/sysconfig
 	[ -x /usr/sbin/hwsetup ] && hwsetup
+	eend $?
 }

diff --git a/init.d/unmute b/init.d/unmute
index 9f0f3f9..4ce6db9 100755
--- a/init.d/unmute
+++ b/init.d/unmute
@@ -11,7 +11,7 @@ start()
 	then
 		for i in $(cat /proc/asound/cards | awk '{print $1}' | grep ^[[:digit:]])
 		do
-			einfo "Unmuting sound card $i ..."
+			ebegin "Unmuting sound card $i"
 			if [ -d /proc/asound/card$i ] && [ -x /usr/bin/amixer ]
 			then
 				amixer -c $i scontrols > /etc/amixer
@@ -43,6 +43,7 @@ start()
 					&& amixer -c $i -q set Capture 95% unmute cap \
 					>/dev/null 2>&1
 			fi
+			eend 0
 		done
 	fi
 	return 0



             reply	other threads:[~2011-10-25  2:37 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  2:37 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-27 16:57 [gentoo-commits] proj/livecd-tools:master commit in: init.d/ Ben Kohler
2021-07-29  4:05 Georgy Yakovlev
2021-02-25 23:12 Ben Kohler
2020-11-06  0:58 Matt Turner
2020-11-06  0:29 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-04-23 18:08 Rick Farina
2019-09-20 19:32 Matt Turner
2019-09-20 19:32 Matt Turner
2018-09-14  5:27 Matt Turner
2018-08-24 14:57 Richard Farina
2018-03-16  1:07 Richard Farina
2018-03-15 18:49 Richard Farina
2018-03-15 17:07 Richard Farina
2018-03-15  4:34 William Hubbs
2018-03-15  3:51 Richard Farina
2017-08-28 18:43 Richard Farina
2017-02-25  0:50 Robin H. Johnson
2016-07-09  4:27 William Hubbs
2015-12-11 17:53 William Hubbs
2015-12-11 17:53 William Hubbs
2015-11-01 20:44 Richard Farina
2014-05-22 16:30 Richard Farina
2013-07-05 21:55 William Hubbs
2013-07-05 21:46 William Hubbs
2013-01-03 18:20 William Hubbs
2012-10-03 14:17 William Hubbs
2011-09-19  1:41 Jorge Manuel B. S. Vicetto
2011-06-30 20:29 William Hubbs
2011-06-30 20:12 William Hubbs
2011-06-28  5:22 William Hubbs
2011-06-28  5:18 William Hubbs
2011-06-28  5:13 William Hubbs
2011-05-01  3:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0e5d3bfc530c4c6607e0f04ab7f24770070b9cc7.WilliamH@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox