Files
SimpleLinux/scripts/lm_sensors.sh
T

16 lines
416 B
Bash

#!/bin/sh
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
lm_sensors() {
printf "$GREEN** Building and installing lm_sensors\n$RESET"
[ -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)
}