记udev规则无效问题

1.注意规则的权限
2.注意规则关键字的顺序
失效规则:

KERNEL==“md1”,SUBSYSTEM==“block”,ACTION==“change”,RUN+="/home/dhc/raid1.sh changed %k"

因为匹配的关键字顺序问题造成。

KERNEL==“md1”,ACTION==“change”,SUBSYSTEM==“block”,RUN+="/home/dhc/raid1.sh changed %k"

你可能感兴趣的:(linux)