From 0119d2f7bd7e5b954fb5ed834f540ce0798e7ce1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 23 Jul 2005 01:29:42 +0000 Subject: Log the dhclient startup command. Diagnosing the lack of dhclient on first livecd bootup --- etc/inc/interfaces.inc | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.1