From ecad6245783da77983570bda3f00186506eea55f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 28 Feb 1999 06:50:34 +0000 Subject: if swapon exists, use it to add root swap partition --- distrib/miniroot/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'distrib/miniroot/install.sh') 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 -- cgit v1.2.3