Files
SimpleLinux/scripts/lm_sensors.sh
T
2026-02-26 13:40:18 +07:00

19 lines
620 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)
# rm -rf $rootfspath/usr/man $rootfspath/usr/include
# find $rootfspath -type f -name "*.a" -delete
# ${CROSS_COMPILE}-strip $rootfspath/usr/bin/* $rootfspath/usr/lib/* $rootfspath/usr/sbin/*
}