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: //lib64/udev/rules.d/50-mmc.rules
#author: Consumer Platform Team

#Skip some useless events
SUBSYSTEM!="block|scsi", GOTO="mmc_end"
ENV{DEVTYPE}=="partition", GOTO="mmc_end"
ACTION!="add|change|remove", GOTO="mmc_end"
KERNEL!="mmcblk[0-9]", GOTO="mmc_end"

#Get parent of serial
ACTION!="remove", ATTRS{serial}!="", ENV{SYNO_ATTR_SERIAL}="$attr{serial}"

RUN+="/lib/udev/script/sdcard.sh %k"

LABEL="mmc_end"