e2fsprogs: move udev rule to force fsck check from diskdev_cmds package to here, rework udev rule to check all supported disks

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-24 20:06:15 +02:00
parent 8156b25ca2
commit 1791043a31

View File

@ -20,10 +20,8 @@
################################################################################
SUBSYSTEM!="block", GOTO="end"
ACTION!="add", GOTO="end"
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", ENV{ID_FS_TYPE}=="hfs|hfsplus", RUN+="/sbin/fsck.hfsplus -r -y /dev/%k"
ACTION=="add|change", RUN+="/sbin/fsck -y /dev/%k"
# exit
LABEL="end"