added lm_sensors package
This commit is contained in:
1 parent
f6741325da
commit
1adad88039
7 files changed
+48
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
lm_sensors() {
|
||||
printf "$GREEN** Building and installing lm_sensors\n$RESET"
|
||||
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/*
|
||||
}
|
||||
Reference in new issue
Block a user