diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-01-02 22:38:51 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-01-02 22:38:51 +0000 |
commit | e36ff5e3a9bc097cb77c859c3a0b3e3781d2f5aa (patch) | |
tree | cea834a17743747cd6e499cf10002c5907d0d369 /distrib/miniroot/install.sh | |
parent | 88504480cec3d930ac6c7d4e0a6c5ba6d811e23d (diff) |
Fix saving dhclient lease files during installation.
OK krw@
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r-- | distrib/miniroot/install.sh | 6 |
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 |