|
|
@ -29,7 +29,7 @@ |
|
|
# /var/packages/StorageManager/target/ui/storage_panel.js |
|
|
# /var/packages/StorageManager/target/ui/storage_panel.js |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scriptver="v3.6.122" |
|
|
scriptver="v3.6.123" |
|
|
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 |
|
|
@ -91,6 +91,7 @@ Options: |
|
|
For NAS with x86_64 CPUs only |
|
|
For NAS with x86_64 CPUs only |
|
|
Installs IHM on '22 series and newer models (untested) |
|
|
Installs IHM on '22 series and newer models (untested) |
|
|
--reboot Reboot after a DSM update when build number has changed |
|
|
--reboot Reboot after a DSM update when build number has changed |
|
|
|
|
|
Only works if script is running from a boot-up schedule |
|
|
Only needed if NVMe volume or PCIe card need a 2nd |
|
|
Only needed if NVMe volume or PCIe card need a 2nd |
|
|
reboot after DSM update |
|
|
reboot after DSM update |
|
|
-h, --help Show this help message |
|
|
-h, --help Show this help message |
|
|
@ -1002,9 +1003,15 @@ fixdrivemodel(){ |
|
|
hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name |
|
|
hdmodel=${hdmodel#"Hitachi "} # Remove "Hitachi " from start of model name |
|
|
hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name |
|
|
hdmodel=${hdmodel#"SAMSUNG "} # Remove "SAMSUNG " from start of model name |
|
|
hdmodel=${hdmodel#"FUJISTU "} # Remove "FUJISTU " from start of model name |
|
|
hdmodel=${hdmodel#"FUJISTU "} # Remove "FUJISTU " from start of model name |
|
|
|
|
|
|
|
|
|
|
|
# Remove any leading spaces |
|
|
|
|
|
var=$(echo "$var" | sed -e 's/^[[:space:]]*//') |
|
|
elif [[ $1 =~ ^'APPLE HDD '.* ]]; then |
|
|
elif [[ $1 =~ ^'APPLE HDD '.* ]]; then |
|
|
# Old drive brands |
|
|
# Old drive brands |
|
|
hdmodel=${hdmodel#"APPLE HDD "} # Remove "APPLE HDD " from start of model name |
|
|
hdmodel=${hdmodel#"APPLE HDD "} # Remove "APPLE HDD " from start of model name |
|
|
|
|
|
|
|
|
|
|
|
# Remove any leading spaces |
|
|
|
|
|
var=$(echo "$var" | sed -e 's/^[[:space:]]*//') |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|