#!/bin/bash case $1 in start-pre) if /usr/syno/bin/synobootseq --is-booting-up > /dev/null; then # Clean up printers section in smb.conf /usr/syno/bin/synoprint --disable > /dev/null 2>&1 || true # Clean up eSATA and USB section in smb.conf when booting up /usr/syno/bin/synousbdisk -rcclean >> /dev/null 2>&1 || true fi ;; start-post) /usr/syno/sbin/eunit_info || true killall -s USR1 hotplugd &> /dev/null ;; esac exit 0