diff options
author | joerg <joerg@FreeBSD.org> | 1996-11-03 14:41:58 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-11-03 14:41:58 +0000 |
commit | b9f3f4db000ec46b2acf1d58c0ed078c3f2ed0bf (patch) | |
tree | dfd3dc3564f48bd1396bfbaba401f8ec826bc140 /etc/rc | |
parent | 23653336af7a10366ecf2876b34258d78fb00c65 (diff) | |
download | FreeBSD-src-b9f3f4db000ec46b2acf1d58c0ed078c3f2ed0bf.zip FreeBSD-src-b9f3f4db000ec46b2acf1d58c0ed078c3f2ed0bf.tar.gz |
/dev/vn0b is supposed to be a block device, so don't test(1) whether
it's a plain file.
Submitted by: brian@awfulhak.demon.co.uk (Brian Somers)
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.103 1996/10/28 08:28:02 joerg Exp $ +# $Id: rc,v 1.104 1996/11/01 09:45:51 peter Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -92,7 +92,7 @@ if [ -f /etc/sysconfig ]; then fi # Add additional swapfile, if configured. -if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -f /dev/vn0b ]; then +if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then echo "Adding $swapfile as additional swap." /usr/sbin/vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b fi |