udev-block-add-change: simplify a check
This commit is contained in:
parent
6b32378158
commit
a032129b80
@ -86,11 +86,7 @@ fi
|
|||||||
# the same time)
|
# the same time)
|
||||||
for part in /sys$DEVPATH/$NAME*; do
|
for part in /sys$DEVPATH/$NAME*; do
|
||||||
if [ -d $part ]; then
|
if [ -d $part ]; then
|
||||||
if is_used $part; then
|
if is_used $part || is_attached $part; then
|
||||||
xs_remove
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if is_attached $part; then
|
|
||||||
xs_remove
|
xs_remove
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user