diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 9741af826..a98ab176d 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -124,7 +124,7 @@ function system_resolvconf_generate($dynupdate = false) $dnslock = lock('resolvconf', LOCK_EX); - $fd = fopen("{$g['varetc_path']}/resolv.conf", "w"); + $fd = fopen('/etc/resolv.conf', 'w'); if (!$fd) { printf("Error: cannot open resolv.conf in system_resolvconf_generate().\n"); unlock($dnslock); @@ -133,7 +133,7 @@ function system_resolvconf_generate($dynupdate = false) fwrite($fd, $resolvconf); fclose($fd); - chmod("{$g['varetc_path']}/resolv.conf", 0644); + chmod('/etc/resolv.conf', 0644); if (!file_exists("/var/run/booting")) { /* restart dhcpd (nameservers may have changed) */ diff --git a/src/etc/rc b/src/etc/rc index c0fc18db2..0e648c7cd 100755 --- a/src/etc/rc +++ b/src/etc/rc @@ -175,10 +175,8 @@ if [ ! -L /etc/hosts ]; then /bin/ln -s /var/etc/hosts /etc/hosts fi -if [ ! -L /etc/resolv.conf ]; then - /bin/rm -rf /etc/resolv.conf - /bin/ln -s /var/etc/resolv.conf /etc/resolv.conf -fi +# Remove symlinks that are no longer needed +if [ -L /etc/resolv.conf ]; then rm /etc/resolv.conf; fi # Setup compatibility link for packages that # have trouble overriding the PREFIX configure diff --git a/src/www/status_interfaces.php b/src/www/status_interfaces.php index 75cf2343a..68bc87336 100644 --- a/src/www/status_interfaces.php +++ b/src/www/status_interfaces.php @@ -1,4 +1,5 @@ . @@ -305,7 +306,7 @@ include("head.inc"); =htmlspecialchars($ifinfo['gatewayv6']);?> - +