relax detection of SODIMMs
This commit is contained in:
parent
02b335f0a2
commit
c33f18c697
@ -160,7 +160,7 @@ function configure {
|
|||||||
|
|
||||||
# Look for ram temps
|
# Look for ram temps
|
||||||
msg "\nDetecting support for RAM temperature sensors..."
|
msg "\nDetecting support for RAM temperature sensors..."
|
||||||
if (echo "$sensorsOutput" | grep -q '"SODIMM":'); then
|
if echo "$sensorsOutput" | grep -Eq '"SODIMM[0-9]{0,2}":'; then
|
||||||
msg "Detected RAM temperature sensors:\n$(echo "$sensorsOutput" | grep -o '"SODIMM[^"]*"' | sed 's/"//g')"
|
msg "Detected RAM temperature sensors:\n$(echo "$sensorsOutput" | grep -o '"SODIMM[^"]*"' | sed 's/"//g')"
|
||||||
ENABLE_RAM_TEMP=true
|
ENABLE_RAM_TEMP=true
|
||||||
SENSORS_DETECTED=true
|
SENSORS_DETECTED=true
|
||||||
@ -169,7 +169,6 @@ function configure {
|
|||||||
ENABLE_RAM_TEMP=false
|
ENABLE_RAM_TEMP=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if HDD/SSD data is installed
|
|
||||||
# Check if HDD/SSD data is installed
|
# Check if HDD/SSD data is installed
|
||||||
msg "\nDetecting support for HDD/SDD temperature sensors..."
|
msg "\nDetecting support for HDD/SDD temperature sensors..."
|
||||||
if [ $DEBUG_REMOTE = true ]; then
|
if [ $DEBUG_REMOTE = true ]; then
|
||||||
@ -1032,7 +1031,8 @@ generate_hdd_widget() {
|
|||||||
# use subshell to allow variable expansion
|
# use subshell to allow variable expansion
|
||||||
(
|
(
|
||||||
export HELPERCTORPARAMS
|
export HELPERCTORPARAMS
|
||||||
cat <<'EOF' | envsubst '$HELPERCTORPARAMS' > "$1"
|
export HDD_ITEMS_PER_ROW
|
||||||
|
cat <<'EOF' | envsubst '$HDD_ITEMS_PER_ROW $HELPERCTORPARAMS' > "$1"
|
||||||
{
|
{
|
||||||
itemId: 'thermalHdd',
|
itemId: 'thermalHdd',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
@ -1046,7 +1046,7 @@ generate_hdd_widget() {
|
|||||||
const sensorName = "temp1";
|
const sensorName = "temp1";
|
||||||
const tempHelper = Ext.create('PVE.mod.TempHelper', $HELPERCTORPARAMS);
|
const tempHelper = Ext.create('PVE.mod.TempHelper', $HELPERCTORPARAMS);
|
||||||
// display configuration
|
// display configuration
|
||||||
const itemsPerRow = ${HDD_ITEMS_PER_ROW};
|
const itemsPerRow = $HDD_ITEMS_PER_ROW;
|
||||||
// ---
|
// ---
|
||||||
let objValue;
|
let objValue;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user