diff options
author | pjd <pjd@FreeBSD.org> | 2004-10-06 14:42:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-10-06 14:42:35 +0000 |
commit | 5da4fe1795d2ed33f56c3764212b2a5a82d444b7 (patch) | |
tree | ea6272ce1d70d4fd777d7303ce42500b17027a2c /etc/rc.d/gbde | |
parent | 0a21f474dc2916335177c20f10de96a7a093926e (diff) | |
download | FreeBSD-src-5da4fe1795d2ed33f56c3764212b2a5a82d444b7.zip FreeBSD-src-5da4fe1795d2ed33f56c3764212b2a5a82d444b7.tar.gz |
Lock file for gbde devices is optional.
Diffstat (limited to 'etc/rc.d/gbde')
-rw-r--r-- | etc/rc.d/gbde | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.d/gbde b/etc/rc.d/gbde index 6359f41..06c090e 100644 --- a/etc/rc.d/gbde +++ b/etc/rc.d/gbde @@ -82,12 +82,16 @@ gbde_start() parentdev=${device%.bde} parent=${parentdev#/dev/} eval "lock=\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\"}" - if [ -e "${lock}" -a ! -e "${device}" ]; then + if [ ! -e "${device}" ]; then echo "Configuring Disk Encryption for ${device}." count=1 while [ ${count} -le ${gbde_attach_attempts} ]; do - gbde attach ${parentdev} -l ${lock} + if [ -e "${lock}" ]; then + gbde attach ${parentdev} -l ${lock} + else + gbde attach ${parentdev} + fi if [ -e ${device} ]; then break fi |