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 Tue Jan 24 12:00:22 UTC 2012
[aur-mirror.git]
/
openct-hal
/
openct
blob
5ff96b468d9e62abf1a280b064825c4d85bcb36d
1
. /etc/rc.conf
2
. /etc/rc.d/functions
3
4
DAEMON=/usr/sbin/openct-control
5
NAME=openct
6
DESC="Smart Card Terminal Framework"
7
8
case "$1" in
9
start)
10
ck_daemon hal && /etc/rc.d/hal start
11
stat_busy "Starting $DESC"
12
$DAEMON init
13
if [ $? -gt 0 ]; then
14
stat_fail
15
else
16
add_daemon $NAME
17
stat_done
18
fi
19
;;
20
stop)
21
stat_busy "Stopping $DESC"
22
$DAEMON shutdown
23
if [ $? -gt 0 ]; then
24
stat_fail
25
else
26
rm_daemon $NAME
27
stat_done
28
fi
29
;;
30
restart)
31
$0 stop
32
$0 start
33
;;
34
*)
35
echo "usage: $0 {start|stop|restart}"
36
;;
37
esac
38
exit 0