summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-12-20 13:18:53 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-12-20 13:18:53 +0100
commit7a9e7c30ba5f80b1e176a84b21094813893178bd (patch)
tree38338bf19bdfb9ae0b7ff8ba5cbc50479424f11b
parent0fb997733a0bb4e3f7a0c073c19a2e302be1fbae (diff)
Fix e2os script posixness
* sutils/e2os.sh (sbget, sbset): Use POSIX syntax for functions.
-rwxr-xr-xsutils/e2os.sh4
1 files changed, 2 insertions, 2 deletions
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))