diff --git a/sbin/ocs-onthefly b/sbin/ocs-onthefly index d69a83f2..3af27e9e 100755 --- a/sbin/ocs-onthefly +++ b/sbin/ocs-onthefly @@ -2093,6 +2093,9 @@ parse_ocs_onthefly_cmd_options() { if [ -z "$(echo $1 |grep ^-.)" ]; then # skip the -xx option, in case tgt_dev=$1 + if [[ "$tgt_dev" =~ ^\/dev\/ ]]; then + tgt_dev=${tgt_dev:5} + fi shift fi [ -z "$tgt_dev" ] && USAGE && exit 1