diff options
-rw-r--r-- | src/block.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh index bb46e25..b1cd319 100644 --- a/src/block.sh +++ b/src/block.sh @@ -1,6 +1,6 @@ # Functions for mounting and unmounting block devices # -# Copyright (C) 2015 Patrick "P. J." McDermott +# Copyright (C) 2015 Patrick McDermott # # This file is part of the ProteanOS Development Kit. # @@ -21,6 +21,7 @@ is_block() { local dev="${1}" + shift 1 [ -b "${dev}" ] return ${?} @@ -29,6 +30,7 @@ is_block() check_block() { local dev="${1}" + shift 1 if ! [ -b "${dev}" ]; then error "$(get_msg 'block_device_invalid')" "${dev}" @@ -41,6 +43,7 @@ check_block() block_mount() { local dev="${1}" + shift 1 local dir= if ! check_block "${dev}"; then @@ -67,6 +70,7 @@ block_mount() block_umount() { local dir="${1}" + shift 1 local i= local timed_out= |