netifd: repair dhcp client id option Busybox udhcpc dropped support for the -c option...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 12:43:14 +0000 (12:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 12:43:14 +0000 (12:43 +0000)
SVN-Revision: 32573

package/netifd/files/lib/netifd/proto/dhcp.sh

index 3365cb7aebc7da7507d843c543800b4dca834658..9182d58ad890fef4ea35ab38ea4429f10be09e73 100755 (executable)
@@ -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
 }