summaryrefslogtreecommitdiffstats
path: root/meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh')
-rw-r--r--meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh b/meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh
new file mode 100644
index 0000000..7f02cd5
--- /dev/null
+++ b/meta-raptor/meta-asus/recipes-asus/sensor-setup/files/sensor-setup.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Copyright 2014-present Facebook. All Rights Reserved.
+#
+# This program file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program in a file named COPYING; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301 USA
+#
+
+### BEGIN INIT INFO
+# Provides: sensor-setup
+# Required-Start: power-on
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: Power on micro-server
+### END INIT INFO
+
+# Eventually, this will be used to configure the various (mostly
+# i2c-based) sensors, once we have a kernel version that supports
+# doing this more dynamically.
+
+modprobe pmbus
+modprobe w83795 force=1,0x2f
OpenPOWER on IntegriCloud