aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commitee808f12b2743febfbe40c5271a128b6bdb8d575 (patch)
tree03b0f61dd1abade579032ece98d174663404e0de /package
parent3d25196097c1fc4ff437f0d1cf5c62069111ecdb (diff)
downloadmaster-187ad058-ee808f12b2743febfbe40c5271a128b6bdb8d575.tar.gz
master-187ad058-ee808f12b2743febfbe40c5271a128b6bdb8d575.tar.bz2
master-187ad058-ee808f12b2743febfbe40c5271a128b6bdb8d575.zip
[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
Diffstat (limited to 'package')
-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 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
}