#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1172 2021/08/09 13:56:17 sthen Exp $
+# $OpenBSD: install.sub,v 1.1173 2021/08/24 21:50:09 bluhm Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
echo "Fetching $_url"
if unpriv ftp -Vo - "$_url" \
>"/tmp/ai/ai.$AI_MODE.conf" 2>/dev/null; then
- ifconfig $_if delete down 2>/dev/null
+ ifconfig $_if inet -autoconf delete down \
+ 2>/dev/null
rm /var/db/dhcpleased/$_if
return 0
fi
echo "Fetching $_rf"
[[ -f $_rf ]] && _rf="file://$_rf"
if unpriv ftp -Vo - "$_rf" >"/tmp/ai/ai.$AI_MODE.conf" 2>/dev/null; then
- ifconfig $_if delete down 2>/dev/null
+ ifconfig $_if inet -autoconf delete down 2>/dev/null
return 0
fi
return 1