5 # BEFORE: mountcritlocal localswap dumpon
7 $_rc_subr_loaded . /etc/rc.subr
10 start_cmd="cryptdisks_start"
11 stop_cmd="cryptdisks_stop"
12 CRYPTTAB="/etc/crypttab"
16 if [ ! -f $CRYPTTAB ]; then
20 if [ -x /sbin/dmsetup ]; then
21 /sbin/dmsetup version >/dev/null
23 warn "Device-mapper not present in kernel"
28 if [ ! -x /sbin/cryptdisks ]; then
29 warn "cryptdisks is not executable"
33 echo "Configuring crypto disks."
39 if [ ! -f $CRYPTTAB ]; then
43 if [ -x /sbin/dmsetup ]; then
44 /sbin/dmsetup version >/dev/null
46 warn "Device-mapper not present in kernel"
51 if [ ! -x /sbin/cryptdisks ]; then
52 warn "cryptdisks is not executable"
56 echo "Unconfiguring crypto disks."