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 Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git]
/
startcrypt
/
crypt
blob
738dd26dd34db5327d93b44f300a49cb96ce1d1a
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
case
"
$1
"
in
7
start
)
8
/
usr
/
sbin
/
cryptcfg
--menu
9
error
=
$?
10
11
if
[
$error
-eq
0
];
then
12
stat_done
13
else
14
stat_fail
15
fi
16
;;
17
stop
)
18
stat_busy
"Closing All Crypt Volumes"
19
/
usr
/
sbin
/
cryptcfg
--stopall
20
error
=
$?
21
22
if
[
$error
-eq
0
];
then
23
stat_done
24
else
25
stat_fail
26
fi
27
;;
28
restart
)
29
$0
stop
30
/
bin
/
sleep
2
31
$0
start
32
;;
33
*)
34
echo
"usage:
$0
{start|stop|restart}"
35
esac