HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //lib/udev/rules.d/50-usb-bluetooth.rules
# author: ANT
# only handle usb-bluetooth dongle

ENV{SUBSYSTEM}!="usb", GOTO="bluetooth_end"
ACTION!="add|remove", GOTO="bluetooth_end"
ENV{SYNO_USB_DEVICE}!="BLUETOOTH", GOTO="bluetooth_end"
ENV{SYNO_USB_DRIVER}=="", GOTO="bluetooth_end"
ENV{INTERFACE}=="", GOTO="bluetooth_end"
ENV{SYNO_SUPPORT_DUALHEAD}=="yes", GOTO="bluetooth_end"
ENV{SYNO_BLOCK_OPTIONAL_USB}=="yes", GOTO="bluetooth_end"

ATTRS{busnum}!="", ATTRS{devnum}!="", ENV{SYNO_ATTR_BUSNUM_DEVNUM}="$attr{busnum}.$attr{devnum}"

ACTION=="add", RUN+="/lib/udev/script/usb-bluetooth-util.sh plug-in"
ACTION=="remove", RUN+="/lib/udev/script/usb-bluetooth-util.sh plug-out"

LABEL="bluetooth_end"