| Server IP : 193.86.120.172 / Your IP : 216.73.216.67 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib64/udev/rules.d/ |
Upload File : |
#author: Consumer Platform Team
#Skip some useless events
SUBSYSTEM!="block|scsi", GOTO="usb_end"
ENV{DEVTYPE}=="partition", GOTO="usb_end"
ACTION!="add|change|remove", GOTO="usb_end"
# mmcblk should apply 50-mmc.rules, so we skip it.
KERNEL=="mmcblk[0-9]", GOTO="usb_end"
#Get parent of busnum and devnum
ACTION!="remove", ATTRS{busnum}!="", ATTRS{devnum}!="", ENV{SYNO_ATTR_BUSNUM_DEVNUM}="$attr{busnum}.$attr{devnum}"
#Get parent of serial
ACTION!="remove", ATTRS{serial}!="", ENV{SYNO_ATTR_SERIAL}="$attr{serial}"
RUN+="/lib/udev/script/usb.sh %k"
LABEL="usb_end"