-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·19 lines (15 loc) · 919 Bytes
/
setup.sh
File metadata and controls
executable file
·19 lines (15 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
. /opt/farm/scripts/functions.install
/opt/farm/scripts/setup/extension.sh sf-cache-utils
# QNAP with QTS replaced with Debian
# https://www.cyrius.com/debian/kirkwood/qnap/
if [ "`grep Hardware /proc/cpuinfo |grep QNAP`" != "" ] && [ -f /etc/debian_version ] && [ ! -f /var/cache/cacti/qcontrol.tmp ]; then
echo "error: you have to patch qcontrol configuration first, using patch file support/qnap-debian/qcontrol.patch" >/var/cache/cacti/qcontrol.tmp
fi
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1079544
if [ -d /etc/sensors.d ] && [ -f /sys/class/dmi/id/product_name ] && grep -q "ProLiant MicroServer Gen8" /sys/class/dmi/id/product_name; then
echo "setting up HP ProLiant ACPI fix"
install_copy /opt/farm/ext/thermal-utils/support/hp-proliant-acpi/hp-acpi-fix.conf /etc/sensors.d/hp-acpi-fix.conf
fi
# how to install TemperNTC drivers:
# /opt/farm/ext/farm-roles/install.sh temperntc