summaryrefslogtreecommitdiff
path: root/package/netifd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-01 12:43:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-07-01 12:43:14 +0000
commitbcacf552fdbd524dc16142223e08032d1071c748 (patch)
treead071f223575b2b73ba53eae3ef11bfb25e7f49b /package/netifd
parentdeff2382d0319d08836827e211d667c62921f3c3 (diff)
downloadmtk-20170518-bcacf552fdbd524dc16142223e08032d1071c748.zip
mtk-20170518-bcacf552fdbd524dc16142223e08032d1071c748.tar.gz
mtk-20170518-bcacf552fdbd524dc16142223e08032d1071c748.tar.bz2
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/
SVN-Revision: 32573
Diffstat (limited to 'package/netifd')
-rwxr-xr-xpackage/netifd/files/lib/netifd/proto/dhcp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/netifd/files/lib/netifd/proto/dhcp.sh b/package/netifd/files/lib/netifd/proto/dhcp.sh
index 3365cb7..9182d58 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
}