From: Artem Bityutskiy Date: Fri, 3 Aug 2012 07:35:36 +0000 (+0300) Subject: load_nandsim: switch to sh X-Git-Tag: v1.5.1~58 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f28ddd5a9259f399e042c819f6a076738b5ea89a;p=mtd-utils.git 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 --- 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)"