chiark / gitweb /
[PATCH] only build klibc_fixups.c if we are actually using klibc.
[elogind.git] / test / test.tty
index d5e2d6715dc7bd9afff037db8044fe0a009403e4..42f46a2e7c266a49a2f37374a472a8cfe6b83ec4 100644 (file)
@@ -15,6 +15,6 @@ BIN=./udev            # location of your udev binary
 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