diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2013-11-08 21:34:36 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2013-11-08 21:34:36 +0000 |
commit | b87d52823d54b8df8b9a4766dddaf434c814c522 (patch) | |
tree | 65e8655b542318b80b492583f92dd1a6de070f40 /distrib/miniroot | |
parent | 9051a045a690a2bb6d6263ff955e6da5c444842f (diff) |
Use get_ifdevs() to get the interface name
which the system netbooted from.
"cool" uwe@ on a similar diff
ok krw@ halex@
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 4b004ad0285..eb6f25238d9 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.687 2013/11/05 19:54:40 uwe Exp $ +# $OpenBSD: install.sub,v 1.688 2013/11/08 21:34:35 rpe Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -2104,7 +2104,7 @@ get_responsefile() { [ -x /sbin/dhclient ] || return # Did we do a netboot? - BOOTDEV=$(ifconfig netboot 2>/dev/null | sed "/^ /d;s/:.*//") + BOOTDEV=$(get_ifdevs netboot) [[ -n $BOOTDEV ]] || return # Try to get a DHCP lease. This whole process is done in the |