summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlosg <carlosg>2005-03-25 16:29:32 +0000
committercarlosg <carlosg>2005-03-25 16:29:32 +0000
commitb461920e589181db34caabb774ce941332c0d20d (patch)
treebd54808d20c992237773f31c125329e20664c9fa
parentdb9b6b771891c0d6444c1e099fd7ec315db58b0a (diff)
2005-03-25 Carlos Garnacho Parro <carlosg@gnome.org>gnome-2-10
* network.pl.in: Fixed a bug when dealing with dhclient v3, the -e option doesn't make the same than in dhclient v2.
-rw-r--r--ChangeLog5
-rw-r--r--network.pl.in6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b1329f9..be84ba8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-25 Carlos Garnacho Parro <carlosg@gnome.org>
+
+ * network.pl.in: Fixed a bug when dealing with dhclient v3, the -e
+ option doesn't make the same than in dhclient v2.
+
2005-03-15 Pawan Chitrakar <pawan@nplinux.org>
* configure.in: Added ne in ALL_LINGUAS
diff --git a/network.pl.in b/network.pl.in
index 677a5c7..9e85847 100644
--- a/network.pl.in
+++ b/network.pl.in
@@ -159,7 +159,11 @@ sub gst_network_enable_iface
if ($bootproto eq "dhcp")
{
- if (&gst_file_locate_tool ("dhclient"))
+ if (&gst_file_locate_tool ("dhclient3"))
+ {
+ $command = "dhclient3 -pf /var/run/dhclient.$dev.pid $dev";
+ }
+ elsif (&gst_file_locate_tool ("dhclient"))
{
$command = "dhclient -pf /var/run/dhclient.$dev.pid -e $dev";
}