[PATCH] defenv2: fix verbose booting, typo

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 26 05:42:09 EDT 2012


- 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 at 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




More information about the barebox mailing list