diff options
author | 1999-02-28 06:50:33 +0000 | |
---|---|---|
committer | 1999-02-28 06:50:33 +0000 | |
commit | d1e344d33c27881e4d125283dc33bad47cfb22f5 (patch) | |
tree | f0875d60a69108ff0fb14dbdd4ab552443d58f21 | |
parent | if we kill, do not kill again (diff) | |
download | wireguard-openbsd-d1e344d33c27881e4d125283dc33bad47cfb22f5.tar.xz wireguard-openbsd-d1e344d33c27881e4d125283dc33bad47cfb22f5.zip |
if swapon exists, use it to add root swap partition
-rw-r--r-- | distrib/miniroot/install.sh | 6 |
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 |