Project

General

Profile

« Previous | Next » 

Revision f1cc2287

Added by Scott Ullrich over 20 years ago

Make sure resolv.conf is correct.

This fixes Ticket #63

View differences:

etc/rc
31 31

  
32 32
/usr/local/bin/php -f /etc/rc.conf_mount_rw
33 33

  
34
if [ -f /etc/hosts ]; then
35
	rm /etc/hosts
34
# Repair symlinks if they are broken
35
if [ ! -L /etc/hosts ]; then
36
	rm -rf /etc/hosts
36 37
	ln -s /var/etc/hosts /etc/hosts    
37 38
fi
39
if [ ! -L /etc/resolv.conf ]; then
40
    rm -rf /etc/resolv.conf
41
    ln -s /var/etc/resolv.conf /etc/resolv.conf    
42
fi
38 43

  
39 44
/etc/rc.d/initrandom start >/dev/null
40 45
/etc/rc.d/random start >/dev/null

Also available in: Unified diff