HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //proc/25618/root/usr/syno/etc.defaults/unbindusb.sh
#!/bin/sh
UNBIND_FILE="/sys/module/usbcore/drivers/usb:usb/unbind"
USBSTOR_DIR="/sys/module/usb_storage/drivers/usb:usb-storage/"
if [ ! -e ${UNBIND_FILE} -o ! -d ${USBSTOR_DIR} ]; then
  exit
fi

for file in `ls ${USBSTOR_DIR} | grep :`
do
  num=`echo ${file} | cut -d : -f 1`
  echo ${num} > ${UNBIND_FILE}
done