From 32496109a037706e8f6b8a678e803cfe84e404fb Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Mon, 15 Jan 2024 16:36:39 +1100 Subject: [PATCH 1/2] Update syno_hdd_db.sh Update help --- syno_hdd_db.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index aa3d342..76255fa 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -27,7 +27,7 @@ # Now warns if script is located on an M.2 volume. -scriptver="v3.4.79" +scriptver="v3.4.80" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -60,12 +60,14 @@ Usage: $(basename "$0") [options] Options: -s, --showedits Show edits made to _host db and db.new file(s) -n, --noupdate Prevent DSM updating the compatible drive databases - -m, --m2 Don't process M.2 drives - -f, --force Force DSM to not check drive compatibility - -r, --ram Disable memory compatibility checking (DSM 7.x only), + -r, --ram Disable memory compatibility checking (DSM 7.x only) and sets max memory to the amount of installed memory - -w, --wdda Disable WD WDDA - -e, --email Disable colored text in output scheduler emails. + -w, --wdda Disable WD Device Analytics to prevent DSM showing + a false warning for WD drives that are 3 years old + DSM 7.2.1 already has WDDA disabled + -f, --force Force DSM to not check drive compatibility + Do not use this option unless absolutely needed + -e, --email Disable colored text in output scheduler emails --restore Undo all changes made by the script --autoupdate=AGE Auto update script (useful when script is scheduled) AGE is how many days old a release must be before From fa650678739bf54f3df1f2f2ddee91febe5d34b0 Mon Sep 17 00:00:00 2001 From: leonpano2006 Date: Sat, 20 Jan 2024 11:49:34 +0100 Subject: [PATCH 2/2] Update syno_hdd_db.sh fix for other path of uname cause it think is not synology --- syno_hdd_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 5aacddd..5f1e6d3 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -40,7 +40,7 @@ if [ ! "$(basename "$BASH")" = bash ]; then fi # Check script is running on a Synology NAS -if ! uname -a | grep -i synology >/dev/null; then +if ! /usr/bin/uname -a | grep -i synology >/dev/null; then echo "This script is NOT running on a Synology NAS!" echo "Copy the script to a folder on the Synology" echo "and run it from there."