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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

351件の閲覧回数
xueyf
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 返答(返信)

319件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Which product and which version BSP are you using?

0 件の賞賛

315件の閲覧回数
xueyf
Contributor III
IMX8MP Platform && ubuntu file system
0 件の賞賛