File: 84-flashcache.rules.in

package info (click to toggle)
flashcache 3.1.2%2Bgit20140801-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 800 kB
  • ctags: 892
  • sloc: ansic: 9,070; sh: 403; perl: 329; makefile: 200
file content (14 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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"