summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-07-12 21:05:33 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-07-12 21:08:00 +0200
commit79f8ae7b80b91c24679c51bb0a4b4dfe1c1452b0 (patch)
treed0ecfb7352ef61260db48c14a1d0fc33f888551a /plugins
parent4dfe58506284f87110393bb3c01bd37bed90e049 (diff)
downloadconnman-79f8ae7b80b91c24679c51bb0a4b4dfe1c1452b0.tar.gz
connman-79f8ae7b80b91c24679c51bb0a4b4dfe1c1452b0.tar.bz2
connman-79f8ae7b80b91c24679c51bb0a4b4dfe1c1452b0.zip
Do not pass the -H option to dhclient task
This option is only supported by RedHat's dhclient package.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dhclient.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/dhclient.c b/plugins/dhclient.c
index b3bcf0ed..8b2af6bf 100644
--- a/plugins/dhclient.c
+++ b/plugins/dhclient.c
@@ -149,7 +149,6 @@ static void dhclient_died(struct connman_task *task, void *user_data)
static void dhclient_setup(struct connman_task *task, const char *ifname)
{
const char *path, *intf = "org.moblin.connman.Task";
- const char *hostname;
path = connman_task_get_path(task);
@@ -164,13 +163,6 @@ static void dhclient_setup(struct connman_task *task, const char *ifname)
STATEDIR, ifname);
connman_task_add_argument(task, "-cf", "%s/dhclient.conf", SCRIPTDIR);
connman_task_add_argument(task, "-sf", "%s/dhclient-script", SCRIPTDIR);
-
- hostname = connman_utsname_get_hostname();
-#ifdef HAVE_DHCLIENT_HOSTNAME
- if (hostname != NULL)
- connman_task_add_argument(task, "-H", hostname);
-#endif
-
connman_task_add_argument(task, ifname, NULL);
connman_task_add_argument(task, "-n", NULL);
}