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