udev-block-add-change: simplify a check

(cherry picked from commit a032129b80)
release3.1
Rusty Bird 8 years ago committed by Marek Marczykowski-Górecki
parent 1777a1e589
commit addc1d9776
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -86,11 +86,7 @@ fi
# the same time)
for part in /sys$DEVPATH/$NAME*; do
if [ -d $part ]; then
if is_used $part; then
xs_remove
exit 0
fi
if is_attached $part; then
if is_used $part || is_attached $part; then
xs_remove
exit 0
fi

Loading…
Cancel
Save