[PATCH] faster test scripts

I've attached a patch against 005 for both the block and tty scripts.  I
didn't bother running udev backgrounded, since as you say, the new code
runs a lot faster.
This commit is contained in:
chris_friesen@sympatico.ca 2003-11-19 02:39:39 -08:00 committed by Greg KH
parent 17f73597fe
commit 8e5d592525
2 changed files with 3 additions and 4 deletions

View File

@ -16,14 +16,13 @@ export ACTION=$1 # 'add' or 'remove'
for i in ${SYSFSDIR}/block/*; do
# add each drive
export DEVPATH="/"`echo $i | cut --delimiter='/' --fields=3-`
export DEVPATH=${i#${SYSFSDIR}}
$BIN block
# add each partition, on each device
for j in $i/*; do
if [ -f $j/dev ]; then
export DEVPATH="/"`echo $j | \
cut --delimiter='/' --fields=3-`
export DEVPATH=${j#${SYSFSDIR}}
$BIN block
fi
done

View 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