feat(sh): add OpenWRT path

code from @oilervoss
This commit is contained in:
栽培者 2020-09-26 13:37:34 +08:00
parent 6eb1826120
commit 69b702f04a
2 changed files with 2 additions and 2 deletions

View File

@ -400,7 +400,7 @@ getTransmissionPath() {
# 用户如知道自己的 Transmission Web 所在的目录,直接修改这个值,以避免搜索所有目录
# ROOT_FOLDER="/usr/local/transmission/share/transmission"
# Fedora 或 Debian 发行版的默认 ROOT_FOLDER 目录
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ]; then
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ] || [ -f "/etc/openwrt_release" ]; then
ROOT_FOLDER="/usr/share/transmission"
fi

View File

@ -401,7 +401,7 @@ getTransmissionPath() {
# 用户如知道自己的 Transmission Web 所在的目录,直接修改这个值,以避免搜索所有目录
# ROOT_FOLDER="/usr/local/transmission/share/transmission"
# Fedora 或 Debian 发行版的默认 ROOT_FOLDER 目录
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ]; then
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ] || [ -f "/etc/openwrt_release" ]; then
ROOT_FOLDER="/usr/share/transmission"
fi