From f28ddd5a9259f399e042c819f6a076738b5ea89a Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 3 Aug 2012 10:35:36 +0300 Subject: 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 --- load_nandsim.sh | 5 +---- 1 file changed, 1 insertion(+), 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)" -- cgit v1.2.3