summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-01-02 22:38:51 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-01-02 22:38:51 +0000
commite36ff5e3a9bc097cb77c859c3a0b3e3781d2f5aa (patch)
treecea834a17743747cd6e499cf10002c5907d0d369
parent88504480cec3d930ac6c7d4e0a6c5ba6d811e23d (diff)
Fix saving dhclient lease files during installation.
OK krw@
-rw-r--r--distrib/miniroot/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index df682a99585..01cc7cb9f62 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sh,v 1.258 2014/09/05 07:22:29 ajacoutot Exp $
+# $OpenBSD: install.sh,v 1.259 2015/01/02 22:38:50 rpe Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -236,7 +236,9 @@ mv /tmp/ttys /mnt/etc/ttys
echo -n "Saving configuration files..."
# Save any leases obtained during install.
-(cd /var/db; [[ -f dhclient.leases ]] && mv dhclient.leases /mnt/var/db/. )
+(cd /var/db; for _f in dhclient.leases.*; do
+ [[ -f $_f ]] && mv $_f /mnt/var/db/.
+done)
# Move configuration files from /tmp to /mnt/etc.
hostname >/tmp/myname