Changeset 27132


Ignore:
Timestamp:
2011-06-08T01:25:43+02:00 (7 years ago)
Author:
jow
Message:

[package] base-files: fix error reporting for unsupported protocols on virtual interfaces

Location:
trunk/package/base-files
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r26986 r27132  
    1111 
    1212PKG_NAME:=base-files 
    13 PKG_RELEASE:=71 
     13PKG_RELEASE:=72 
    1414 
    1515PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
  • trunk/package/base-files/files/lib/network/config.sh

    r26990 r27132  
    326326 
    327327        # Interface settings 
    328         grep "$iface:" /proc/net/dev > /dev/null && { 
     328        grep -qE "^ *$iface:" /proc/net/dev && { 
    329329                local mtu macaddr txqueuelen 
    330330                config_get mtu "$config" mtu 
  • trunk/package/base-files/files/sbin/ifup

    r15245 r27132  
    11#!/bin/sh 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    44/sbin/ifdown "$@" 
     
    1919 
    2020config_get ifname "$1" device 
    21 for dev in $ifname; do 
     21for dev in ${ifname:-$1}; do 
    2222        setup_interface "$dev" "$1" 
    2323done 
Note: See TracChangeset for help on using the changeset viewer.