summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-04-18 21:08:07 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-04-18 21:08:07 +0200
commit1d918b50cddc975abbfd06af134a6d843d9bc7f0 (patch)
tree368e5fde24098f0918cb5e6339379047ca08ec57
parentcf100ca71bf365d8898e97d4ec9dd05c3941cae8 (diff)
path_id: remove subsystem whitelist
-rwxr-xr-xextras/path_id/path_id27
1 files changed, 7 insertions, 20 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index a3a627e407..7a37700289 100755
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -549,7 +549,7 @@ handle_device () {
;;
*)
mode=""
- ;;
+ ;;
esac
if [ "$d" ]; then
d="$d-${rewind}st${mode}"
@@ -557,22 +557,9 @@ handle_device () {
fi
}
-case "$TYPE" in
- block)
- handle_device
- echo "ID_PATH=$d"
- ;;
- scsi_tape)
- handle_device
- echo "ID_PATH=$d"
- ;;
- input)
- handle_device
- echo "ID_PATH=$d"
- ;;
- *)
- RESULT=1
- ;;
-esac
-
-exit $RESULT
+handle_device
+if [ -z "$d" ]; then
+ exit 1
+fi
+echo "ID_PATH=$d"
+exit 0