Please either use find to search only in common directories like i propose or use "-mount" parameter to a find command which would prevent scanning mounted external drives. In my case current version takes more than 30 minutes to complete scan due to external drive mount points..
I added `|| [ -f "/etc/openwrt_release" ]` on the function `getTransmissionPath()` to
~~~bash
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ] || [ -f "/etc/openwrt_release" ]; then
ROOT_FOLDER="/usr/share/transmission"
fi
~~~
so the root folder is recognized on [OpenWRT](http://www.openwrt.org) for installation or update.
That path is align with the [OpenWRT package](https://github.com/openwrt/packages/tree/master/net/transmission-web-control)