aboutsummaryrefslogtreecommitdiff
path: root/release/rc.local
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2014-09-13 20:09:02 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2014-09-13 20:09:02 +0000
commit013713e765ee1361e61375b6aca6672ccbd1f21b (patch)
treef2f3b12f363115bb905f055cf59d49744fb6cf7b /release/rc.local
parentd6c7df9860e16e3c0595770c355cff21c043dbb2 (diff)
downloadsrc-013713e765ee1361e61375b6aca6672ccbd1f21b.tar.gz
src-013713e765ee1361e61375b6aca6672ccbd1f21b.zip
Create /tmp/bsdinstall_etc even if we aren't starting the installer so that
dhclient can write resolv.conf when used from the live environment. PR: 176078 MFC after: 3 days
Notes
Notes: svn path=/head/; revision=271549
Diffstat (limited to 'release/rc.local')
-rwxr-xr-xrelease/rc.local3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local
index 2c846c4e384d..cb442273c303 100755
--- a/release/rc.local
+++ b/release/rc.local
@@ -10,6 +10,9 @@
MACHINE=`uname -m`
+# resolv.conf from DHCP ends up in here, so make sure the directory exists
+mkdir /tmp/bsdinstall_etc
+
kbdcontrol -d >/dev/null 2>&1
if [ $? -eq 0 ]; then
# Syscons: use xterm, start interesting things on other VTYs