udev-block-add-change: simplify a check

pull/6/head
Rusty Bird 8 years ago
parent 6b32378158
commit a032129b80
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

@ -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