mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
disks: change nvme powerlimit
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ea247debe3
commit
991fd6a0a5
@ -283,7 +283,7 @@ function dtModel() {
|
||||
echo " pcie_root = \"${PCIEPATH}\";" >>${DEST}
|
||||
echo " port_type = \"ssdcache\";" >>${DEST}
|
||||
echo " };" >>${DEST}
|
||||
POWER_LIMIT="${POWER_LIMIT},100"
|
||||
POWER_LIMIT="${POWER_LIMIT},0"
|
||||
fi
|
||||
done
|
||||
[ -n "${POWER_LIMIT:1}" ] && sed -i "s/power_limit = .*/power_limit = \"${POWER_LIMIT:1}\";/" ${DEST} || sed -i '/power_limit/d' ${DEST}
|
||||
|
Loading…
Reference in New Issue
Block a user