# if you edit this file, your changes will disappear on update.

SUBSYSTEM!="block", GOTO=":end"
ACTION!="add|change", GOTO=":end"

PROGRAM+="/bin/grep -c '__VERSION__' /proc/flashcache/flashcache_version"\
,RESULT!="1"\
,RUN+="/usr/bin/logger -t flashcache Version mismatch between utilities and kernel module."\
,GOTO=":end"

PROGRAM+="/sbin/flashcache_load /dev/%k"\
,RUN+="/usr/bin/logger -t flashcache[/dev/%k] Loaded flashcache device. %c"

LABEL=":end"
