Custom rules under /etc/udev/rules.d are not taking effect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Custom rules under /etc/udev/rules.d are not taking effect

924 次查看
logic887
Contributor III

I have created a rule named "99-usb-mount.rules" in the rules.d directory, but it doesn't trigger the script. How can I resolve this issue?

This is the rules:
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda1", RUN+="/bin/bash /etc/udev/scripts/mount.sh start"

This is the script:

#!/bin/sh

 

udisksctl mount -b /dev/sda1
echo "111111111111111111111111111"



0 项奖励
回复
2 回复数

892 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Which product and which version BSP are you using?

0 项奖励
回复

888 次查看
logic887
Contributor III
IMX8MP Platform && ubuntu file system
0 项奖励
回复