3 # test.block - run udev(8) on each block device in /sys/block
5 SYSFSDIR=/sys # change this for a nonstand sysfs mount point
6 BIN=./udev # location of your udev binary
7 export ACTION=add # 'add' or 'remove'
9 for i in ${SYSFSDIR}/block/*; do
11 export DEVPATH="/"`echo $i | cut --delimiter='/' --fields=3-`
14 # add each partition, on each device
16 if [ -f $j/dev ]; then
17 export DEVPATH="/"`echo $j | \
18 cut --delimiter='/' --fields=3-`