summaryrefslogtreecommitdiff
path: root/extras/path_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-03-21 17:28:47 +0100
committerKay Sievers <kay.sievers@suse.de>2006-03-21 17:28:47 +0100
commita05098641e448cbdb7b742826c3a0bc35a8a1c1f (patch)
tree443ede6e5baa8eee8294241ba6ffe74234f9b264 /extras/path_id
parentad9deeebfc8a34b95f32968dd0ef6bb292890e74 (diff)
fix output for USB path
Diffstat (limited to 'extras/path_id')
-rw-r--r--extras/path_id4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/path_id b/extras/path_id
index c17fc3cdf0..aecc40cc9b 100644
--- a/extras/path_id
+++ b/extras/path_id
@@ -460,18 +460,20 @@ handle_block () {
d="$d-${rewind}st${mode}"
fi
fi
- echo "ID_PATH=$d"
}
case "$TYPE" in
block)
handle_block
+ echo "ID_PATH=$d"
;;
scsi_tape)
handle_block
+ echo "ID_PATH=$d"
;;
input)
handle_usb $SYSFS$DEVPATH/device
+ echo "ID_PATH=$d"
;;
*)
RESULT=1