chiark / gitweb /
fix output for USB path
authorKay Sievers <kay.sievers@suse.de>
Tue, 21 Mar 2006 16:28:47 +0000 (17:28 +0100)
committerKay Sievers <kay.sievers@suse.de>
Tue, 21 Mar 2006 16:28:47 +0000 (17:28 +0100)
extras/path_id

index c17fc3c..aecc40c 100644 (file)
@@ -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