diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/lm_sensors/lmsensors | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/lm_sensors/lmsensors')
-rw-r--r-- | meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init | 47 | ||||
-rw-r--r-- | meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init | 49 |
2 files changed, 96 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init b/meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init new file mode 100644 index 000000000..4433020b3 --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: fancontrol | ||
4 | # Required-Start: $local_fs | ||
5 | # Should-Start: | ||
6 | # Required-Stop: $local_fs | ||
7 | # Should-Stop: | ||
8 | # Default-Start: 2 3 4 5 | ||
9 | # Default-Stop: 0 1 6 | ||
10 | # Short-Description: fancontrol initscript | ||
11 | # Description: Starts and controls the fancontrol daemon | ||
12 | ### END INIT INFO | ||
13 | |||
14 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | ||
15 | |||
16 | DESC="fan control daemon" | ||
17 | NAME="fancontrol" | ||
18 | FANCONTROL=`which $NAME` | ||
19 | PIDFILE="/var/run/fancontrol.pid" | ||
20 | |||
21 | # Exit if the package is not installed | ||
22 | [ -x "$FANCONTROL" ] || exit 0 | ||
23 | |||
24 | case "$1" in | ||
25 | start) | ||
26 | echo -n "Starting $DESC: $NAME... " | ||
27 | start-stop-daemon -S -p $PIDFILE -b -x $FANCONTROL | ||
28 | echo "done." | ||
29 | ;; | ||
30 | stop) | ||
31 | echo -n "Stopping $DESC: $NAME... " | ||
32 | start-stop-daemon -K -p $PIDFILE | ||
33 | echo "done." | ||
34 | ;; | ||
35 | restart) | ||
36 | echo "Restarting $DESC: $NAME... " | ||
37 | $0 stop | ||
38 | $0 start | ||
39 | echo "done." | ||
40 | ;; | ||
41 | *) | ||
42 | echo "Usage: $0 {start|stop|restart}" | ||
43 | exit 1 | ||
44 | ;; | ||
45 | esac | ||
46 | |||
47 | exit 0 | ||
diff --git a/meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init b/meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init new file mode 100644 index 000000000..5a09cd3cf --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init | |||
@@ -0,0 +1,49 @@ | |||
1 | #! /bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: sensord | ||
4 | # Required-Start: $local_fs | ||
5 | # Should-Start: | ||
6 | # Required-Stop: $local_fs | ||
7 | # Should-Stop: | ||
8 | # Default-Start: 2 3 4 5 | ||
9 | # Default-Stop: 0 1 6 | ||
10 | # Short-Description: sensord initscript | ||
11 | # Description: Starts the sensord logging daemon | ||
12 | ### END INIT INFO | ||
13 | |||
14 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | ||
15 | |||
16 | DESC="sensors logging daemon" | ||
17 | NAME="sensord" | ||
18 | SENSORD=`which $NAME` | ||
19 | |||
20 | . /etc/init.d/functions || exit 1 | ||
21 | . /etc/sensord.conf || exit 1 | ||
22 | |||
23 | # Exit if the package is not installed | ||
24 | [ -x "$SENSORD" ] || exit 0 | ||
25 | |||
26 | case "$1" in | ||
27 | start) | ||
28 | echo -n "Starting $DESC: $NAME... " | ||
29 | start-stop-daemon -S -x $SENSORD -- $SENSORD_ARGS | ||
30 | echo "done." | ||
31 | ;; | ||
32 | stop) | ||
33 | echo -n "Stopping $DESC: $NAME... " | ||
34 | start-stop-daemon -K -x $SENSORD | ||
35 | echo "done." | ||
36 | ;; | ||
37 | restart) | ||
38 | echo "Restarting $DESC: $NAME... " | ||
39 | $0 stop | ||
40 | $0 start | ||
41 | echo "done." | ||
42 | ;; | ||
43 | *) | ||
44 | echo "Usage: $0 {start|stop|restart}" | ||
45 | exit 1 | ||
46 | ;; | ||
47 | esac | ||
48 | |||
49 | exit 0 | ||