X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=test%2Ftest.tty;h=b89ad5a6d81e16fd58231129bf54de64bce3bd18;hp=d5e2d6715dc7bd9afff037db8044fe0a009403e4;hb=85701baede56edd4fba042f98550b8dec1a73127;hpb=17f73597fe88d60da3d105907dc45f753be42912 diff --git a/test/test.tty b/test/test.tty old mode 100644 new mode 100755 index d5e2d6715..b89ad5a6d --- 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 -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 DEVPATH="/"`echo $i | cut --delimiter='/' --fields=3-` + export DEVPATH=${i#${SYSFSDIR}} $BIN tty done