summaryrefslogtreecommitdiff
path: root/examples/mdev.conf.change_blockdev.sh
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-15 19:18:58 +0200
committerDenys Vlasenko2017-07-18 19:20:58 +0200
commit56a361bec15bdc3ee13b2208d43747298f281867 (patch)
tree68e43c02b9fc9b81d6e297c02d7ef70c03bca303 /examples/mdev.conf.change_blockdev.sh
parent6f13dd1d6574bbc0eacd5574d2e451596a92df5d (diff)
downloadbusybox-56a361bec15bdc3ee13b2208d43747298f281867.zip
busybox-56a361bec15bdc3ee13b2208d43747298f281867.tar.gz
fix more instances of ": $((a++))" in shell scripts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/mdev.conf.change_blockdev.sh')
-rwxr-xr-xexamples/mdev.conf.change_blockdev.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/mdev.conf.change_blockdev.sh b/examples/mdev.conf.change_blockdev.sh
index 512e43f..252d30f 100755
--- a/examples/mdev.conf.change_blockdev.sh
+++ b/examples/mdev.conf.change_blockdev.sh
@@ -14,7 +14,7 @@ env | sort
while sleep 1; test $cnt != 0; do
echo "Trying to reread partition table on $DEVNAME ($cnt)"
- : $((cnt--))
+ cnt=$((cnt-1))
# If device node doesn't exist, it means the device was removed.
# Stop trying.
test -e "$DEVNAME" || { echo "$DEVNAME doesn't exist, aborting"; exit 1; }