diff options
| author | 2013-11-08 21:34:35 +0000 | |
|---|---|---|
| committer | 2013-11-08 21:34:35 +0000 | |
| commit | d1f3a108f29adbe0868377d6afafa497069183c9 (patch) | |
| tree | 6a279e19bad81558354be36d68863fb8b8738849 | |
| parent | Make quota(1) work with DUIDs. (diff) | |
| download | wireguard-openbsd-d1f3a108f29adbe0868377d6afafa497069183c9.tar.xz wireguard-openbsd-d1f3a108f29adbe0868377d6afafa497069183c9.zip | |
Use get_ifdevs() to get the interface name
which the system netbooted from.
"cool" uwe@ on a similar diff
ok krw@ halex@
| -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 |
