Fix broadcast DHCP client startup option in dhcp.sh
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 17 Oct 2012 21:53:46 +0000 (21:53 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 17 Oct 2012 21:53:46 +0000 (21:53 +0000)
Signed-off-by: Hans Dedecker (hans.dedecker at technicolor.com)
Fixes the DHCP request broadcasts replies option parsing

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33826 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 9182d58..7b1fe37 100755 (executable)
@@ -26,7 +26,7 @@ proto_dhcp_setup() {
                append dhcpopts "-O $opt"
        done
 
                append dhcpopts "-O $opt"
        done
 
-       [ "$broadcast" = 1 ] && broadcast="-O broadcast" || broadcast=
+       [ "$broadcast" = 1 ] && broadcast="-B" || broadcast=
 
        proto_export "INTERFACE=$config"
        proto_run_command "$config" udhcpc \
 
        proto_export "INTERFACE=$config"
        proto_run_command "$config" udhcpc \