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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

899 Views
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 Kudos
Reply
2 Replies

867 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which product and which version BSP are you using?

0 Kudos
Reply

863 Views
logic887
Contributor III
IMX8MP Platform && ubuntu file system
0 Kudos
Reply