fix error messages
[openwrt.git] / package / base-files / default / etc / hotplug.d / net / 10-net
index 8d2c6a8..4579a84 100644 (file)
@@ -26,7 +26,7 @@ find_name()
                                }
                        ;;
                        *)
-                               [ "$(nvram get ${IFPROTO}_ifname)" = "$INTERFACE" \
+                               [ "$(nvram get ${IFTYPE}_device)" = "$INTERFACE" \
                                  -a -x /sbin/ifup.${IFPROTO} ] && return 0
                        ;;
                esac
@@ -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
                ;;
                *)
This page took 0.020192 seconds and 4 git commands to generate.