Skip to content

Commit

Permalink
Merge pull request #400 from dotysan/dotysan
Browse files Browse the repository at this point in the history
Pull from dotysan
  • Loading branch information
007revad authored Dec 16, 2024
2 parents 5d04a24 + 8e7f56b commit bcc8fb3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 27 deletions.
20 changes: 18 additions & 2 deletions syno_hdd_db.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,25 @@ else
fi


PS4func() {
local lineno="$1"
local i f=''
local c="\033[0;36m" y="\033[0;33m" n="\033[0m"
local d=$((${#FUNCNAME[@]}-2))

if [[ $lineno == 1 ]]
then lineno=0
fi

for ((i=d; i>0; i--))
do printf -v f "%s%s()" "$f" "${FUNCNAME[i]}"
done

printf "$y%s:%04d$c%s$n " "${BASH_SOURCE[1]##*/}" "$lineno" "$f"
}
if [[ $debug == "yes" ]]; then
set -x
export PS4='`[[ $? == 0 ]] || echo "\e[1;31;40m($?)\e[m\n "`:.$LINENO:'
PS4='\r$(PS4func $LINENO)'
set -o xtrace
fi


Expand Down
49 changes: 24 additions & 25 deletions syno_hdd_vendor_ids.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# You can add your drive's vendor id and vendor name here.
#
# Only edit this file if the script warns you about a missing vendor id.

0x025e="Solidigm"
0x05dc="Lexar"
0x0ed1="aigo"
0x10ec="TEAMGROUP"
0x137e="Patriot"
0x1458="Gigabyte"
0x1462="MSI"
0x196e="PNY"
0x1987="Phison"
0x1b1c="Corsair"
0x1bdc="Apacer"
0x1c5c="SK Hynix"
0x1cc4="UMIS"
0x1cfa="Corsair"
0x1d79="Transcend"
0x1dbe="ADATA"
0x1e0f="KIOXIA"
0x1e49="ZHITAI"
0x1e4b="FIKWOT"
0x1f40="Netac"

# You can add your drive's vendor id and vendor name here.
#
# Only edit this file if the script warns you about a missing vendor id.

0x025e="Solidigm"
0x05dc="Lexar"
0x0ed1="aigo"
0x10ec="TEAMGROUP"
0x137e="Patriot"
0x1458="Gigabyte"
0x1462="MSI"
0x196e="PNY"
0x1987="Phison"
0x1b1c="Corsair"
0x1bdc="Apacer"
0x1c5c="SK Hynix"
0x1cc4="UMIS"
0x1cfa="Corsair"
0x1d79="Transcend"
0x1dbe="ADATA"
0x1e0f="KIOXIA"
0x1e49="ZHITAI"
0x1e4b="FIKWOT"
0x1f40="Netac"

0 comments on commit bcc8fb3

Please sign in to comment.