summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-02-28 06:50:33 +0000
committerderaadt <deraadt@openbsd.org>1999-02-28 06:50:33 +0000
commitd1e344d33c27881e4d125283dc33bad47cfb22f5 (patch)
treef0875d60a69108ff0fb14dbdd4ab552443d58f21
parentif we kill, do not kill again (diff)
downloadwireguard-openbsd-d1e344d33c27881e4d125283dc33bad47cfb22f5.tar.xz
wireguard-openbsd-d1e344d33c27881e4d125283dc33bad47cfb22f5.zip
if swapon exists, use it to add root swap partition
-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