/[gentoo-x86]/x11-drivers/nvidia-drivers/files/nvidia-smi.init
Gentoo

Contents of /x11-drivers/nvidia-drivers/files/nvidia-smi.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jul 22 21:08:43 2012 UTC (2 years, 5 months ago) by cardoe
Branch: MAIN
Refactor the ebuild for easier maintenance.
Improve kernel feature detection (bug #412707, #286445, #329597).
Add init script for SMI to control the fan when X is not running (bug #388725,
init script from Stuart Finlayson <stu@santa-li.com>).
Block the drivers from being prelinked (bug #420285, prelink script by Norman
Back <gentoo@thebacks.co.uk>).

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 pidfile="/var/run/nvidia-smi.pid"
7
8 depend() {
9 after modules
10 }
11
12 start() {
13 ebegin "Starting NVIDIA System Management Interface"
14 rm -f ${pidfile}
15 start-stop-daemon --start --quiet --pidfile ${pidfile} \
16 --make-pidfile --background --exec /opt/bin/nvidia-smi -- \
17 -q -l 300
18 eend $?
19 }
20
21 stop() {
22 ebegin "Stopping NVIDIA System Management Interface"
23 start-stop-daemon --stop --quiet --pidfile ${pidfile}
24 eend $?
25 }

  ViewVC Help
Powered by ViewVC 1.1.20