From 7a9e7c30ba5f80b1e176a84b21094813893178bd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 20 Dec 2011 13:18:53 +0100 Subject: Fix e2os script posixness * sutils/e2os.sh (sbget, sbset): Use POSIX syntax for functions. --- sutils/e2os.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sutils') diff --git a/sutils/e2os.sh b/sutils/e2os.sh index 10fe5087..60c9e017 100755 --- a/sutils/e2os.sh +++ b/sutils/e2os.sh @@ -93,7 +93,7 @@ $DD 2>"$ERRS" if="$DEVICE" of="$SB" bs=1k skip=1 count=1 \ # Extract a word of SZ bytes from byte offset POS in the superblock # Optional arg FMT is what format to use (x = hex, d = decimal) -function sbget +sbget () { local pos="$1" sz="$2" fmt="${3-d}" pos=$(($pos / $sz)) @@ -103,7 +103,7 @@ function sbget } # Set a word of SZ bytes at byte offset POS in the superblock to VAL -function sbset +sbset () { local pos="$1" sz="$2" val="$3" pos=$(($pos / $sz)) -- cgit v1.2.3