From: Kay Sievers Date: Fri, 18 Apr 2008 19:08:07 +0000 (+0200) Subject: path_id: remove subsystem whitelist X-Git-Tag: 174~1729 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1d918b50cddc975abbfd06af134a6d843d9bc7f0 path_id: remove subsystem whitelist --- diff --git a/extras/path_id/path_id b/extras/path_id/path_id index a3a627e40..7a3770028 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