mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] defenv2: fix verbose booting, typo
@ 2012-09-26  9:42 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2012-09-26  9:42 UTC (permalink / raw)
  To: barebox

- failed is written with a single 'l'
- the script calls itself during a boot sequence, so pass
  verbose option on to the called script
- multiple -v can simply be appended, no need for if/else

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 defaultenv-2/base/bin/boot |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/defaultenv-2/base/bin/boot b/defaultenv-2/base/bin/boot
index 509986f..60871f0 100644
--- a/defaultenv-2/base/bin/boot
+++ b/defaultenv-2/base/bin/boot
@@ -34,11 +34,7 @@ fi
 
 while getopt "vdhl" opt; do
 	if [ ${opt} = v ]; then
-		if [ -n "$verbose" ]; then
-			verbose="-v -v"
-		else
-			verbose="-v"
-		fi
+		verbose="$verbose -v"
 	elif [ ${opt} = d ]; then
 		dryrun="-d"
 	elif [ ${opt} = l ]; then
@@ -70,8 +66,8 @@ if [ "$sequence" = y ]; then
 		basename $i s
 		msg="${GREEN}boot${NC} ${YELLOW}${s}${NC} -> ${CYAN}${link}${NC}"
 		echo -e "${msg}"
-		boot $dryrun $s
-		echo -e "${msg} ${RED}failled${NC}"
+		boot $dryrun $verbose $s
+		echo -e "${msg} ${RED}failed${NC}"
 		ret=$?
 	done
 	echo -e "${GREEN}boot sequence ${RED}failed${NC}"
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-26  9:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26  9:42 [PATCH] defenv2: fix verbose booting, typo Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox