You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
args=()
HBA=true
for argv in "$@"; do
if [ -e "${argv}" ] && readlink -f "/sys/block/$(basename "${argv}")/device" 2>/dev/null | grep "ata"; then
HBA=false
fi
done
argp=""
for argv in "$@"; do
if [ "${argp}" = "-d" ] && [ "${argv}" = "ata" ] && [ "${HBA}" = "true" ]; then
args+=("sat")
else
args+=("${argv}")
fi
argp="${argv}"
done
echo "Final command to execute: /usr/bin/smartctl.bak ${args[@]}"
/usr/bin/smartctl.bak "${args[@]}"
手动执行smartctl已经成功劫持到了,命令行里也获取到不同温度信息,但是web页面没有效果
smartctl -d ata -A /dev/sata5
Final command to execute: /usr/bin/smartctl.bak -d sat -A /dev/sata5
这是特定型号特定版本不行呢,还是需要修改其他东西?望指点
logs:
(## 因为 log中存在 SN/MAC 等一些敏感信息, 当提供完整文件时请自行抹除他们, 当然你也可以发送到我的邮箱. ##)
(## Because the log contains some sensitive information such as SN/MAC, please delete them when providing the complete file. Of course, you can also send it to my email. ##)
...
(如果你只是说 XXX 不能用, 什么详细信息也不提供, 我也只能说感谢你的反馈.)
(If you just say XXX doesn't work without providing any details, I can only say thank you for your feedback.)
...
The text was updated successfully, but these errors were encountered:
请填写以下信息.
Please fill in the following information.
Install ENV: (You can find it in the boot interface.)
RR version: (You can find it in the update menu.)
DSM:
Issue:
这个劫持脚本是不是对DT机型无效?
脚本里的readlink -f "/sys/block/$(basename "${argv}")/device" 2>/dev/null | grep -q "expander"貌似无效,
我这里对手动执行
readlink -f "/sys/block/sataX/device"
返回是这样的,其中5-9是HBA,1-4是sata
我改了一下脚本的grep关键词为ata
手动执行smartctl已经成功劫持到了,命令行里也获取到不同温度信息,但是web页面没有效果
这是特定型号特定版本不行呢,还是需要修改其他东西?望指点
logs:
(## 因为 log中存在 SN/MAC 等一些敏感信息, 当提供完整文件时请自行抹除他们, 当然你也可以发送到我的邮箱. ##)
(## Because the log contains some sensitive information such as SN/MAC, please delete them when providing the complete file. Of course, you can also send it to my email. ##)
...
(请先看一下#173、#175、#226 的内容)
(Plz review the content of #173, #175, #226 first)
...
(如果你只是说 XXX 不能用, 什么详细信息也不提供, 我也只能说感谢你的反馈.)
(If you just say XXX doesn't work without providing any details, I can only say thank you for your feedback.)
...
The text was updated successfully, but these errors were encountered: