projects
/
multipath-tools
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aefe7b0
)
[getuid] add usb_id
author
root
<root@potab.(none)>
Wed, 10 Aug 2005 16:41:09 +0000
(18:41 +0200)
committer
root
<root@potab.(none)>
Wed, 10 Aug 2005 16:41:09 +0000
(18:41 +0200)
Well, this is useful for testing with usb keys
getuid/usb_id
[new file with mode: 0755]
patch
|
blob
diff --git a/getuid/usb_id
b/getuid/usb_id
new file mode 100755
(executable)
index 0000000..
800e471
--- /dev/null
+++ b/
getuid/usb_id
@@ -0,0
+1,6
@@
+#!/bin/sh
+#
+# copy in /bin and add this line to a device block in multipath.conf :
+# getuid_callout "/bin/usb_id %n"
+#
+cd /sys/block/$1 && cd $(ls -l device|cut -d">" -f2) && cd ../../../.. && cat serial