Files
SimpleLinux/scripts/lm_sensors.sh
T
2026-03-05 17:18:16 +07:00

16 lines
406 B
Bash

#!/bin/sh
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
lm_sensors() {
print_info "** Building and installing lm_sensors"
[ -d $build/lm_sensors ] && return 0
mkdir -pv $build/lm_sensors
cd $build/lm_sensors
git clone https://github.com/lm-sensors/lm-sensors.git
cd lm-sensors
make CC=$CROSS_COMPILE-gcc PREFIX=/usr DESTDIR=$rootfspath install -j$(nproc)
}