From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] defenv2: fix verbose booting, typo
Date: Wed, 26 Sep 2012 11:42:09 +0200 [thread overview]
Message-ID: <1348652529-7355-1-git-send-email-s.hauer@pengutronix.de> (raw)
- 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
reply other threads:[~2012-09-26 9:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1348652529-7355-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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