4 # BEFORE: mountcritlocal localswap dumpon
6 $_rc_subr_loaded . /etc/rc.subr
9 start_cmd="cryptdisks_start"
10 stop_cmd="cryptdisks_stop"
11 CRYPTTAB="/etc/crypttab"
15 if [ ! -f $CRYPTTAB ]; then
19 if [ -x /sbin/dmsetup ]; then
20 /sbin/dmsetup version >/dev/null 2>&1
22 warn "/etc/crypttab found but dm is not loaded or present in kernel"
27 echo "Configuring crypto disks."
33 if [ ! -f $CRYPTTAB ]; then
37 if [ -x /sbin/dmsetup ]; then
38 /sbin/dmsetup version >/dev/null 2>&1
40 warn "/etc/crypttab found but dm is not loaded or present in kernel"
45 echo "Unconfiguring crypto disks."