chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run_directory: fix typo in "make install"
[elogind.git]
/
extras
/
path_id
diff --git
a/extras/path_id
b/extras/path_id
index 8391f2e58619bbe11729ab192b5db6228cbda8ca..c7f50687fe3476099b3dce600eec1f6b3886fd22 100755
(executable)
--- a/
extras/path_id
+++ b/
extras/path_id
@@
-1,13
+1,12
@@
#!/bin/sh
#!/bin/sh
-#set -x
-#
this script should provide the shortest possible unique hardware path
-#
to a block devic
e
+#
provide the shortest possible unique hardware path to a block device
+#
for the udev persistent disk device naming schem
e
#
#
-
-#
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
# DEVPATH=/block/sda/sda3 $0 (or similar)
# $0 /block/sda
# $0 /sys/block/sda
@@
-55,9
+54,7
@@
# then firewire sbp2
# then the rest
# then firewire sbp2
# then the rest
-PATH=/lib/klibc/bin #/usr:/usr/sbin:/usr/bin:/sbin:/bin
SYSFS=/sys
SYSFS=/sys
-export PATH
RESULT=1
CDROM=
TYPE=
RESULT=1
CDROM=
TYPE=