13 start_cmd="gbde_swap_attach"
14 stop_cmd="gbde_swap_detach"
18 while read device mountpoint type options rest ; do
19 case ":${device}:${type}:${options}" in
29 passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
30 device="${device%.bde}"
31 gbde init "${device}" -P "${passphrase}" || return 1
32 gbde attach "${device}" -p "${passphrase}" || return 1
38 while read device mountpoint type options rest ; do
39 case ":${device}:${type}:${options}" in
49 device="${device%.bde}"
50 gbde detach "${device}"