diff --git a/meta/recipes-bsp/lm_sensors/files/fancontrol b/meta/recipes-bsp/lm_sensors/files/fancontrol new file mode 100644 index 0000000..1f03a2b --- /dev/null +++ b/meta/recipes-bsp/lm_sensors/files/fancontrol @@ -0,0 +1,2 @@ +# fancontrol configuration file. +# Place your device specific configuration in this file. diff --git a/meta/recipes-bsp/lm_sensors/files/fancontrol.sh b/meta/recipes-bsp/lm_sensors/files/fancontrol.sh new file mode 100644 index 0000000..f179310 --- /dev/null +++ b/meta/recipes-bsp/lm_sensors/files/fancontrol.sh @@ -0,0 +1,48 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: fancontrol +# Required-Start: $local_fs +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: fancontrol initscript +# Description: Starts and controls the fancontrol daemon +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +DESC="fan control daemon" +NAME="fancontrol" +FANCONTROL=`which $NAME` + +. /etc/init.d/functions || exit 1 + +# Exit if the package is not installed +[ -x "$FANCONTROL" ] || exit 0 + +case "$1" in + start) + echo -n "Starting $DESC: $NAME... " + /sbin/start-stop-daemon -S -x $FANCONTROL -b -- $FANCONTROL_ARGS + echo "done." + ;; + stop) + echo -n "Stopping $DESC: $NAME... " + /sbin/start-stop-daemon -K -x $FANCONTROL + echo "done." + ;; + restart) + echo "Restarting $DESC: $NAME... " + $0 stop + $0 start + echo "done." + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/meta/recipes-bsp/lm_sensors/files/sensord.cgi b/meta/recipes-bsp/lm_sensors/files/sensord.cgi new file mode 100644 index 0000000..b1aad05 --- /dev/null +++ b/meta/recipes-bsp/lm_sensors/files/sensord.cgi @@ -0,0 +1,10 @@ +#!/usr/bin/rrdcgi + + + +sensord + + +Generate a valid sensord.cgi script and install it in your BSP. + + diff --git a/meta/recipes-bsp/lm_sensors/files/sensord.conf b/meta/recipes-bsp/lm_sensors/files/sensord.conf new file mode 100644 index 0000000..6b48cf6 --- /dev/null +++ b/meta/recipes-bsp/lm_sensors/files/sensord.conf @@ -0,0 +1,16 @@ +# Default sensord configuration file +# Syntax: sensord {options} {chips} +# -i, --interval