blob: 457f0de96786d5452eca0b5389c5d805e819f344 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
#
# /etc/rc.d/rc.mbpfan
#
# Start/stop/restart - mbpfan.
#
# To make mbpfan start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.mbpfan
#
# and also you must add this to /etc/rc.d/rc.local to
# start mbpfan:
#
# if [ -x /etc/rc.d/rc.mbpfan ]; then
# /etc/rc.d/rc.mbpfan start
# fi
case "$1" in
'start')
/usr/sbin/mbpfan -f >/dev/null &
;;
'stop')
pkill -f /usr/sbin/mbpfan >/dev/null &
rm -f /var/run/mbpfan.pid
;;
'restart')
/usr/sbin/mbpfan -f >/dev/null &
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
|