repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git]
/
nvtv
/
nvtvd
blob
b75c23180dd1fc774d9aee2692705c4ec23e8194
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
NVTVD_PID
=
`pidof -o %PPID /usr/bin/nvtvd`
7
8
case
"
$1
"
in
9
start
)
10
stat_busy
"Starting Nvidia TV-out daemon"
11
nvtvd
&
12
if
[
$?
-gt
0
];
then
13
stat_fail
14
else
15
add_daemon nvtvd
16
stat_done
17
fi
18
;;
19
stop
)
20
stat_busy
"Stopping Nvidia TV-out daemon"
21
kill
$NVTVD_PID
> /
dev
/
null
2
>&
1
22
if
[
$?
-gt
0
];
then
23
stat_fail
24
else
25
rm_daemon nvtvd
26
stat_done
27
fi
28
;;
29
restart
)
30
$0
stop
31
$0
start
32
;;
33
*)
34
echo
"usage:
$0
{start|stop|restart}"
35
;;
36
esac
37
exit
0