summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sh
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-28 06:50:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-28 06:50:34 +0000
commitecad6245783da77983570bda3f00186506eea55f (patch)
treec75f834786ff0f2da58dcf55628d0251efcc3c55 /distrib/miniroot/install.sh
parent204b610d028c683b9bfd812d9d3fc3c5915295c7 (diff)
if swapon exists, use it to add root swap partition
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r--distrib/miniroot/install.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index cb9594cb16e..189de34ebef 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sh,v 1.43 1998/11/09 03:54:52 millert Exp $
+# $OpenBSD: install.sh,v 1.44 1999/02/28 06:50:33 deraadt Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -302,6 +302,10 @@ else
done
fi
+if [ -f /sbin/swapon ]; then
+ swapon /dev/${ROOTDISK}b
+fi
+
# Get network configuration information, and store it for placement in the
# root filesystem later.
cat << \__network_config_1