# SPDX-License-Identifier: MIT or GPL-2.0-only # Udev rules for ublk devices. KERNEL=="ublk-control", MODE="0666", OPTIONS+="static_node=ublk-control" ACTION=="add",KERNEL=="ublk[bc]*",RUN+="/usr/local/sbin/ublk_chown.sh %k 'add' '%M' '%m'" ACTION=="remove",KERNEL=="ublk[bc]*",RUN+="/usr/local/sbin/ublk_chown.sh %k 'remove' '%M' '%m'"