summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-23 01:29:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-23 01:29:42 +0000
commit0119d2f7bd7e5b954fb5ed834f540ce0798e7ce1 (patch)
tree7e3962eb98e1d1a5ea2a89c81f07bdd502901c48
parentc2747f5ae58e8493e62b306a614ecd503934df0b (diff)
downloadpfsense-0119d2f7bd7e5b954fb5ed834f540ce0798e7ce1.zip
pfsense-0119d2f7bd7e5b954fb5ed834f540ce0798e7ce1.tar.gz
Log the dhclient startup command. Diagnosing the lack of dhclient on first livecd bootup
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 1542137..ecf4798 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -623,6 +623,10 @@ EOD;
/* fire up dhclient */
mwexec_bg("/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}");
+ $fout = fopen("/tmp/ifconfig_{$wanif}","w");
+ fwrite($fout, "/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}");
+ fclose($fout);
+
return 0;
}
OpenPOWER on IntegriCloud