Browse Source

Merge pull request #408 from 007revad/develop

Develop
pull/412/head v3.5.107
Dave Russell 12 months ago
committed by GitHub
parent
commit
77ebe72845
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGES.txt
  2. 10
      syno_hdd_db.sh

3
CHANGES.txt

@ -1,3 +1,6 @@
v3.5.107
- Bug fix for firmware version as "Found]" in db files. Issue #407
v3.5.106 v3.5.106
- Bug fix for when script is not located on a volume. Issue #397 - Bug fix for when script is not located on a volume. Issue #397

10
syno_hdd_db.sh

@ -29,7 +29,7 @@
# /var/packages/StorageManager/target/ui/storage_panel.js # /var/packages/StorageManager/target/ui/storage_panel.js
scriptver="v3.5.106" scriptver="v3.5.107"
script=Synology_HDD_db script=Synology_HDD_db
repo="007revad/Synology_HDD_db" repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db scriptname=syno_hdd_db
@ -73,7 +73,7 @@ Options:
DSM 7.2.1 already has WDDA disabled DSM 7.2.1 already has WDDA disabled
-p, --pcie Enable creating volumes on M2 in unknown PCIe adaptor -p, --pcie Enable creating volumes on M2 in unknown PCIe adaptor
-e, --email Disable colored text in output scheduler emails -e, --email Disable colored text in output scheduler emails
-S, --ssd=DRIVE Enable write_mostly on internal HDDs so DSM primary -S, --ssd=DRIVE Enable write_mostly on internal HDDs so DSM primarily
reads from internal SSDs or your specified drives reads from internal SSDs or your specified drives
-S automatically sets internal SSDs as DSM preferred -S automatically sets internal SSDs as DSM preferred
--ssd=DRIVE requires the fast drive(s) as argument, --ssd=DRIVE requires the fast drive(s) as argument,
@ -197,6 +197,7 @@ else
fi fi
# shellcheck disable=SC2317 # Don't warn about unreachable commands in this function
PS4func() { PS4func() {
local lineno="$1" local lineno="$1"
local i f='' local i f=''
@ -956,10 +957,11 @@ getdriveinfo(){
# Account for SSD drives with spaces in their model name/number # Account for SSD drives with spaces in their model name/number
fwrev=$(/usr/syno/bin/syno_hdd_util --ssd_detect | grep "$device " | awk '{print $(NF-3)}') # GitHub issue #86, 87 fwrev=$(/usr/syno/bin/syno_hdd_util --ssd_detect | grep "$device " | awk '{print $(NF-3)}') # GitHub issue #86, 87
# Get M.2 SATA SSD firmware version # Get firmware version with smartctl if $fwrev null
# for M.2 SATA SSD and Github issue #407
if [[ -z $fwrev ]]; then if [[ -z $fwrev ]]; then
dev=/dev/"$(basename -- "$1")" dev=/dev/"$(basename -- "$1")"
fwrev=$(smartctl -a -d sat -T permissive "$dev" | grep -i firmware | awk '{print $NF}') fwrev=$(smartctl -a -d ata -T permissive "$dev" | grep -i firmware | awk '{print $NF}')
fi fi
# Get drive GB size # Get drive GB size

Loading…
Cancel
Save