Browse Source

if, at boot time, a /etc/resolv.conf.save is found, assume this is from

a dhclient that crashed so hard it was unable to swap the file back,
and hence, finish that job.  i convinced krw and henning that this is
right right place (not in netstart)
OPENBSD_3_8
deraadt 20 years ago
parent
commit
e073c9beee
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/etc/rc

+ 5
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.263 2005/04/01 05:37:35 deraadt Exp $
# $OpenBSD: rc,v 1.264 2005/04/09 14:15:18 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -184,6 +184,10 @@ fi
# set hostname, turn on network
echo 'starting network'
if [ -f /etc/resolv.conf.save ]; then
mv /etc/resolv.conf.save /etc/resolv.conf
touch /etc/resolv.conf
fi
. /etc/netstart
if [ "X${pf}" != X"NO" ]; then


Loading…
Cancel
Save