diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-10-11 16:34:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-12 21:32:45 +0200 |
commit | 3b8942faa0ef4088eec60fba0b34cb4be0d7661f (patch) | |
tree | 2fb3504738abd5adadc64d5dee3a23f3b5c6bbb5 /defaultenv/bin/update | |
parent | 5c3538f44d9912e013844b3fe82c51ce62a8247f (diff) | |
download | barebox-3b8942faa0ef4088eec60fba0b34cb4be0d7661f.tar.gz barebox-3b8942faa0ef4088eec60fba0b34cb4be0d7661f.tar.xz |
defaultenv/update: add check crc32 options
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv/bin/update')
-rw-r--r-- | defaultenv/bin/update | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/defaultenv/bin/update b/defaultenv/bin/update index bdac11f209..504bff60a0 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -4,8 +4,9 @@ type="" device_type="" +check=n -while getopt "ht:d:f:" Option +while getopt "ht:d:f:c" Option do if [ ${Option} = t ]; then type=${OPTARG} @@ -13,6 +14,8 @@ elif [ ${Option} = d ]; then device_type=${OPTARG} elif [ ${Option} = f ]; then imagename=${OPTARG} +elif [ ${Option} = c ]; then + check=y else . /env/bin/_update_help exit 0 @@ -43,3 +46,6 @@ else fi . /env/bin/_update +if [ x${check} = xy ]; then + crc32 -f $image -F $part +fi |