plugin: local
name: floppy/check
requires: device.driver == 'floppy'
_description: Floppy test
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "driver=floppy"'
 plugin: shell
 name: floppy/check_`ls /sys$path/driver/*/*/*/block`
 requires: device.path == "$path"
 description: Floppy test for $product
 user: root
 command: floppy_test /dev/`ls /sys$path/driver/*/*/*/block`
 EOF
