mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
disks: modify power_limit
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
5eff20e129
commit
ad211a0ace
@ -283,7 +283,7 @@ function dtModel() {
|
||||
echo " pcie_root = \"${PCIEPATH}\";" >>${DEST}
|
||||
echo " port_type = \"ssdcache\";" >>${DEST}
|
||||
echo " };" >>${DEST}
|
||||
POWER_LIMIT="${POWER_LIMIT},0"
|
||||
POWER_LIMIT="${POWER_LIMIT},100"
|
||||
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