@ -168,12 +168,12 @@ disactivatevol() {
vol_is_mode " $voldev " wo && return 22
vol_is_mode " $voldev " wo && return 22
vol_is_mode " $voldev " wp && return 16
vol_is_mode " $voldev " wp && return 16
if vol_is_mode " $voldev " ro; then
if vol_is_mode " $voldev " ro; then
/s bin/ block umount " ubiblock ${ voldev : 3 } "
grep -q " ^/dev/u biblock ${ voldev : 3 } " /proc/self/mounts && umount " /dev/ ubiblock${ voldev : 3 } "
ubiblock --remove " /dev/ $voldev "
ubiblock --remove " /dev/ $voldev "
ubirename " /dev/ $ubidev " " uvol-ro- $1 " " uvol-rd- $1 " || return $?
ubirename " /dev/ $ubidev " " uvol-ro- $1 " " uvol-rd- $1 " || return $?
return 0
return 0
elif vol_is_mode " $voldev " rw; then
elif vol_is_mode " $voldev " rw; then
/sbin/block umount " $voldev "
umount " /dev/ $voldev "
ubirename " /dev/ $ubidev " " uvol-rw- $1 " " uvol-wd- $1 " || return $?
ubirename " /dev/ $ubidev " " uvol-rw- $1 " " uvol-wd- $1 " || return $?
block_hotplug remove " $voldev "
block_hotplug remove " $voldev "
return 0
return 0