X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/23e86550c9c59436cc5f253292774861dd6ca62e..46225926c8c36b914ad7423bb7e6f36a42b92298:/package/base-files/default/etc/hotplug.d/net/10-net diff --git a/package/base-files/default/etc/hotplug.d/net/10-net b/package/base-files/default/etc/hotplug.d/net/10-net index dd4ee8863..0f384ec46 100644 --- a/package/base-files/default/etc/hotplug.d/net/10-net +++ b/package/base-files/default/etc/hotplug.d/net/10-net @@ -75,12 +75,7 @@ do_ifup() { DHCP_HOSTNAME=${DHCP_HOSTNAME%%.*} [ -z $DHCP_HOSTNAME ] || DHCP_ARGS="$DHCP_ARGS -H $DHCP_HOSTNAME" [ "$if_proto" = "pptp" ] && DHCP_ARGS="$DHCP_ARGS -n -q" || DHCP_ARGS="$DHCP_ARGS -R &" - oldpid=$(cat $pidfile) ${DEBUG:-eval} "udhcpc $DHCP_ARGS" - pidof udhcpc | grep "$oldpid" >&- 2>&- && { - sleep 1 - kill -9 $oldpid - } # hotplug events are handled by /usr/share/udhcpc/default.script ;; *) @@ -144,7 +139,8 @@ do_register() if [ "$INTERFACE" != "$if" ]; then $DEBUG ifconfig "$INTERFACE" 0.0.0.0 up - brctl addif "$if" "$INTERFACE" + $DEBUG brctl addif "$if" "$INTERFACE" + $DEBUG ifconfig "$INTERFACE" allmulti else do_ifup "$IFPROTO" "$IFTYPE" "$if" fi