We don't really need a lockfile, and most likely can't create one at

this point.
This commit is contained in:
Dag-Erling Smørgrav 2004-02-04 15:53:49 +00:00
parent 903f2e5041
commit df3ac04211
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125447
2 changed files with 4 additions and 10 deletions

View File

@ -26,11 +26,8 @@ gbde_swap_attach()
esac
passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
device="${device%.bde}"
lockfile="/var/run/${device##*/}.lock"
gbde init "${device}" -L "${lockfile}" -P "${passphrase}" ||
return 1
gbde attach "${device}" -l "${lockfile}" -p "${passphrase}" ||
return 1
gbde init "${device}" -P "${passphrase}" || return 1
gbde attach "${device}" -p "${passphrase}" || return 1
done
}

View File

@ -26,11 +26,8 @@ gbde_swap_attach()
esac
passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
device="${device%.bde}"
lockfile="/var/run/${device##*/}.lock"
gbde init "${device}" -L "${lockfile}" -P "${passphrase}" ||
return 1
gbde attach "${device}" -l "${lockfile}" -p "${passphrase}" ||
return 1
gbde init "${device}" -P "${passphrase}" || return 1
gbde attach "${device}" -p "${passphrase}" || return 1
done
}