Browse Source

Merge pull request #16 from 007revad/develop

Develop
pull/15/head v1.2.16
007revad 3 years ago
committed by GitHub
parent
commit
264464b60d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGES.txt
  2. 19
      syno_hdd_db.sh

3
CHANGES.txt

@ -1,3 +1,6 @@
v1.2.16
- Changed to show the script version, Synology model and DSM version on each run to make it easier to debug any user's issues.
v1.2.15
- Now finds your expansion units' model numbers and adds your drives to their db files.
- Now adds your M.2 drives to your M.2 PCI card's db files (supports M2Dxx and E10M20-T1 and future models with similar model names).

19
syno_hdd_db.sh

@ -82,7 +82,7 @@
# Optionally disable "support_disk_compatibility".
scriptver="v1.2.15"
scriptver="v1.2.16"
script=Synology_HDD_db
repo="007revad/Synology_HDD_db"
@ -192,7 +192,22 @@ fi
# cut -d"/" -f5 | cut -d"_" -f1 | uniq)
model=$(cat /proc/sys/kernel/syno_hw_version)
model=${model,,} # convert to lower case
# Show script version
echo "$script $scriptver"
#echo "github.com/$repo"
# Show NAS info
productversion=$(get_key_value /etc.defaults/VERSION productversion)
buildphase=$(get_key_value /etc.defaults/VERSION buildphase)
if [[ $buildphase == GM ]]; then buildphase=""; fi
echo "$model DSM $productversion $buildphase"
echo ""
# Convert model to lower case
model=${model,,}
# Check for dodgy characters after model number
if [[ $model =~ 'pv10-j'$ ]]; then # GitHub issue #10

Loading…
Cancel
Save