diff options
author | pjd <pjd@FreeBSD.org> | 2004-10-07 06:00:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-10-07 06:00:06 +0000 |
commit | bc618096d2561bb301e8b0504352d5d60817601a (patch) | |
tree | 0338e1fd9b89914c17c0bc2266b9ad1482ea19d2 /etc/rc.d/gbde | |
parent | c95a2c6f6bf4e40d41002823be820a44ab459a90 (diff) | |
download | FreeBSD-src-bc618096d2561bb301e8b0504352d5d60817601a.zip FreeBSD-src-bc618096d2561bb301e8b0504352d5d60817601a.tar.gz |
Only try to attach if parent device actually exists.
I used ugly "/dev/${parent}" instead of "${parentdev}", because "/dev/"
prefix for devices listed in gbde_devices variable is optional.
Reported by: Sean McNeil <sean@mcneil.com>
Diffstat (limited to 'etc/rc.d/gbde')
-rw-r--r-- | etc/rc.d/gbde | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/gbde b/etc/rc.d/gbde index 06c090e..78d698f 100644 --- a/etc/rc.d/gbde +++ b/etc/rc.d/gbde @@ -82,7 +82,7 @@ gbde_start() parentdev=${device%.bde} parent=${parentdev#/dev/} eval "lock=\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\"}" - if [ ! -e "${device}" ]; then + if [ -e "/dev/${parent}" -a ! -e "${device}" ]; then echo "Configuring Disk Encryption for ${device}." count=1 |