Browse Source

dhclient doesn't write a pid file any more; do remove the code that

deals with it at startup; noticed by wilfried, millert ok
OPENBSD_3_6
henning 20 years ago
parent
commit
188abf7dfd
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/etc/rc

+ 2
- 3
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.246 2004/05/16 04:31:01 mcbride Exp $
# $OpenBSD: rc,v 1.247 2004/05/16 15:45:46 henning Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -195,10 +195,9 @@ dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \
rm -f /etc/nologin rm -f /etc/nologin
rm -f /var/spool/lock/LCK.* rm -f /var/spool/lock/LCK.*
rm -f /var/spool/uucp/STST/* rm -f /var/spool/uucp/STST/*
(cd /var/run && { test -r dhclient.pid && dhclient_pid=`cat dhclient.pid`; rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; test -n "$dhclient_pid" && echo "$dhclient_pid" > dhclient.pid; })
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
(cd /var/authpf && rm -rf -- *) (cd /var/authpf && rm -rf -- *)
# save a copy of the boot messages # save a copy of the boot messages
dmesg >/var/run/dmesg.boot dmesg >/var/run/dmesg.boot


Loading…
Cancel
Save