summaryrefslogtreecommitdiff
path: root/load_nandsim.sh
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-08-03 10:35:36 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-08-03 10:35:36 +0300
commitf28ddd5a9259f399e042c819f6a076738b5ea89a (patch)
treebf1439ff8d530ed6d141f4212cb51cb0dd39dd9e /load_nandsim.sh
parentf90ca3d493d78fc270ce6cd9142aeea9ce43bc54 (diff)
load_nandsim: switch to sh
We do not use bashizms any longer, so we can switch to 'sh'. Also, use strict sh options. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'load_nandsim.sh')
-rwxr-xr-xload_nandsim.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/load_nandsim.sh b/load_nandsim.sh
index 1bb31e1..4d9f0cb 100755
--- a/load_nandsim.sh
+++ b/load_nandsim.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh -euf
#
# This script inserts NAND simulator module to emulate NAND flash of specified
@@ -123,8 +123,5 @@ second="second_id_byte=$second"
[ -z "$fourth" ] || fourth="fourth_id_byte=$fourth"
modprobe nandsim "$first" "$second" $third $fourth
-if [ "$?" != "0" ]; then
- fatal "Error: cannot load nandsim"
-fi
echo "Loaded NAND simulator (${size}MiB, ${eb_size}KiB eraseblock, $page_size bytes NAND page)"