summaryrefslogtreecommitdiff
path: root/extras/path_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-25 00:40:41 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-25 00:40:41 +0200
commitcf7cad9dc90c15ac13baeae85db5e0e25b59ed0e (patch)
tree5b3dafba78937f3f259e0b77398073010f2dca1f /extras/path_id
parent440103fcfc99626c4705f879b63ad710de0209de (diff)
path_id: remove SUSE specific PATH
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'extras/path_id')
-rwxr-xr-xextras/path_id15
1 files changed, 6 insertions, 9 deletions
diff --git a/extras/path_id b/extras/path_id
index 8391f2e586..c7f50687fe 100755
--- a/extras/path_id
+++ b/extras/path_id
@@ -1,13 +1,12 @@
#!/bin/sh
-#set -x
-# this script should provide the shortest possible unique hardware path
-# to a block device
+# provide the shortest possible unique hardware path to a block device
+# for the udev persistent disk device naming scheme
#
-
-# Horrible script. Handle with extreme care.
-
-# to be called from udev
+# Copyright (C) 2005 SUSE Linux Products GmbH
+# Licensed under the GPL v2.
+#
+# to be called from a udev rule to return the name for a symlink
# DEVPATH=/block/sda/sda3 $0 (or similar)
# $0 /block/sda
# $0 /sys/block/sda
@@ -55,9 +54,7 @@
# then firewire sbp2
# then the rest
-PATH=/lib/klibc/bin #/usr:/usr/sbin:/usr/bin:/sbin:/bin
SYSFS=/sys
-export PATH
RESULT=1
CDROM=
TYPE=