WD (OS 5) support

Add support for WD (OS 5)  systems
This commit is contained in:
ChuckPa
2022-10-28 13:17:31 -04:00
parent dbcbd76f83
commit 4a7664b160
2 changed files with 19 additions and 2 deletions

View File

@@ -404,6 +404,22 @@ HostConfig() {
HostType="Docker"
return 0
# Western Digital (OS5)
elif [ -f /etc/system.conf ] && [ -d /mnt/HD/HD_a2/Nas_Prog/plexmediaserver ] && \
grep "Western Digital Corp" /etc/system.conf >/dev/null; then
# Where things are
PLEX_SQLITE="/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Plex SQLite"
AppSuppDir=/mnt/HD/HD*/Nas_Prog/plex_conf
PID_FILE="$AppSuppDir/Plex Media Server/plexmediaserver.pid"
DBDIR="$AppSuppDir/Plex Media Server/Plug-in Support/Databases"
LOGFILE="$DBDIR/DBRepair.log"
LOG_TOOL="logger"
HostType="Western Digital"
return 0
fi
# Unknown / currently unsupported host
@@ -433,7 +449,7 @@ SetLast "" ""
# Identify this host
HostType="" ; LOG_TOOL="echo"
if ! HostConfig; then
Output 'Error: Unknown host. Currently supported hosts are: QNAP, Synology, Netgear, ASUSTOR, and Linux Workstation/Server'
Output 'Error: Unknown host. Currently supported hosts are: QNAP, Synology, Netgear, ASUSTOR, WD (OS5) and Linux Workstation/Server'
exit 1
fi