Fix broadcast DHCP client startup option in dhcp.sh
authorJohn Crispin <john@openwrt.org>
Wed, 17 Oct 2012 21:53:46 +0000 (21:53 +0000)
committerJohn Crispin <john@openwrt.org>
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

SVN-Revision: 33826

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

index 9182d58ad890fef4ea35ab38ea4429f10be09e73..7b1fe3780608c8b4beedb8d082d4e96fb9011883 100755 (executable)
@@ -26,7 +26,7 @@ proto_dhcp_setup() {
                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 \