fix broadcast address
[openwrt.git] / root / etc / functions.sh
index 21efbaf..1f9afb2 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/ash
 
-alias debug=${DEBUG:-true}
+alias debug=${DEBUG:-:}
 
 # allow env to override nvram
 nvram_get () {
@@ -67,7 +67,7 @@ ifup () (
       if_netmask=$(nvram_get ${type}_netmask)
       if_gateway=$(nvram_get ${type}_gateway)
 
-      $DEBUG ifconfig $if $if_ip ${if_netmask:+netmask $if_netmask} up
+      $DEBUG ifconfig $if $if_ip ${if_netmask:+netmask $if_netmask} broadcast + up
       ${if_gateway:+$DEBUG route add default gw $if_gateway}
 
       [ -f /etc/resolv.conf ] && return
This page took 0.019518 seconds and 4 git commands to generate.