diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-19 14:02:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-19 14:02:45 +0000 |
commit | afb667a34e82faaf580f4451cf06558ff4a940bf (patch) | |
tree | f043300b5b1b1ef823c4d67847470bf14ba615f8 /main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch | |
parent | 5c2655f779f788dc3f98cb7db99989f05b89de67 (diff) | |
download | aports-afb667a34e82faaf580f4451cf06558ff4a940bf.tar.bz2 aports-afb667a34e82faaf580f4451cf06558ff4a940bf.tar.xz |
main/busybox: use -x hostname:NAME with udhcp
should fix warning when booting alpine with dhcp
Diffstat (limited to 'main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch')
-rw-r--r-- | main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch b/main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch new file mode 100644 index 0000000000..ebae837569 --- /dev/null +++ b/main/busybox/0001-ifupdown-use-x-hostname-NAME-with-udhcpc.patch @@ -0,0 +1,38 @@ +From ad69a8dea4fff640a7e1dcfa78d0ea96eb201ec4 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Wed, 19 Sep 2012 15:53:02 +0200 +Subject: [PATCH] ifupdown: use -x hostname:NAME with udhcpc + +The -H NAME is deprecated in udhcpc. See commit +2017d48c0d70bef8768efb42909e605ea8eb5a21 + +Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> +--- + networking/ifupdown.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/networking/ifupdown.c b/networking/ifupdown.c +index ad0a997..6eb3570 100644 +--- a/networking/ifupdown.c ++++ b/networking/ifupdown.c +@@ -540,7 +540,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = { + "pump -i %iface% -k", + }, + { "udhcpc", +- "udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %client%]]" ++ "udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -x hostname:%hostname%]][[ -c %client%]]" + "[[ -s %script%]][[ %udhcpc_opts%]]", + "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", + }, +@@ -580,7 +580,7 @@ static int FAST_FUNC dhcp_up(struct interface_defn_t *ifd, execfn *exec) + return 0; + # endif + return execute("udhcpc " UDHCPC_CMD_OPTIONS " -p /var/run/udhcpc.%iface%.pid " +- "-i %iface%[[ -H %hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]", ++ "-i %iface%[[ -x hostname:%hostname%]][[ -c %client%]][[ -s %script%]][[ %udhcpc_opts%]]", + ifd, exec); + } + # else +-- +1.7.12 + |