列出裝置的 sysfs properties 給寫udev rule 時參考使用.

假設要查詢的裝置是 /dev/sda
則使用指令如下:

udevadm info --attribute-walk --path=$(udevadm info --query path --name /dev/sda)

參考資料:
Writing udev rules
howto–udev-rules

This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *