For the issue mentioned, here is the example of the script:
root@AS6208T-RD:/volume1/.@plugins/etc/script # pwd
/usr/local/etc/script
root@AS6208T-RD:/volume1/.@plugins/etc/script # cat H1.sh
#!/bin/sh
echo "${EVENT} ${TYPE} ${NAME} " > /tmp/event
root@AS6208T-RD:/volume1/.@plugins/etc/script # cat /tmp/event
add devices block/sdi/sdi3
Please note you need to name the script in "HX"(for example H1).
The number after H is the sequence of the execution.