Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
sbin
/
Upload File :
New :
File
Dir
//proc/self/root/sbin/mpath_wait
#!/bin/bash retry=3 sec=1 if [ $# -eq 1 ] then while [ ! -e $1 -a "$retry" -gt 0 ] do retry=$(($retry - 1)) sleep $sec done [ -e $1 ] ret=$? exit $ret fi /sbin/dmsetup info -c --noheadings -j $1 -m $2 2> /dev/null | grep -q .*:${1}:${2}:L.*:.*:.*:.*:.* ret=$? while [ "$ret" -ne 0 -a "$retry" -gt 0 ] do sleep $sec /sbin/dmsetup info -c --noheadings -j $1 -m $2 2> /dev/null | grep -q .*:${1}:${2}:L.*:.*:.*:.*:.* ret=$? retry=$(($retry - 1)) done exit $ret