From 2bd97dd89a42dc38b65c1a6ce10961a60dea1211 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 1 Jul 2012 12:43:14 +0000 Subject: [package] netifd: repair dhcp client id option Busybox udhcpc dropped support for the -c option, instead it can be emulated by using -x 0x3d:id, change the dhcp protocol script accordingly and filter all colons from the id while we're at it. This change supersedes http://patchwork.openwrt.org/patch/1810/ git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32573 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/netifd/files/lib/netifd/proto/dhcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/netifd/files/lib/netifd/proto/dhcp.sh b/package/netifd/files/lib/netifd/proto/dhcp.sh index 3365cb7aeb..9182d58ad8 100755 --- a/package/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/netifd/files/lib/netifd/proto/dhcp.sh @@ -35,7 +35,7 @@ proto_dhcp_setup() { -f -t 0 -i "$iface" \ ${ipaddr:+-r $ipaddr} \ ${hostname:+-H $hostname} \ - ${clientid:+-c $clientid} \ + ${clientid:+-x 0x3d:${clientid//:/}} \ ${vendorid:+-V $vendorid} \ $broadcast $dhcpopts } -- cgit v1.2.3