chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: remove all the duplicated rules
[elogind.git]
/
test
/
test.tty
diff --git
a/test/test.tty
b/test/test.tty
old mode 100644
(file)
new mode 100755
(executable)
index
d5e2d67
..
b89ad5a
--- a/
test/test.tty
+++ b/
test/test.tty
@@
-11,10
+11,10
@@
if [ $# = "0" ] ; then
fi
SYSFSDIR=/sys # change this for a nonstand sysfs mount point
fi
SYSFSDIR=/sys # change this for a nonstand sysfs mount point
-BIN=.
/udev
# location of your udev binary
+BIN=.
./udev
# location of your udev binary
export ACTION=$1 # 'add' or 'remove'
for i in ${SYSFSDIR}/class/tty/*; do
export ACTION=$1 # 'add' or 'remove'
for i in ${SYSFSDIR}/class/tty/*; do
- export DEVPATH=
"/"`echo $i | cut --delimiter='/' --fields=3-`
+ export DEVPATH=
${i#${SYSFSDIR}}
$BIN tty
done
$BIN tty
done