Changeset 30008


Ignore:
Timestamp:
2012-02-03T11:17:30+01:00 (6 years ago)
Author:
nbd
Message:

netifd: set the network device in uci state as well to avoid further remapping issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/netifd/files/etc/hotplug.d/iface/00-netstate

    r28499 r30008  
    22        uci_toggle_state network "$INTERFACE" up 1 
    33        uci_toggle_state network "$INTERFACE" connect_time $(sed -ne 's![^0-9].*$!!p' /proc/uptime) 
    4         [ -n "$DEVICE" ] && uci_toggle_state network "$INTERFACE" ifname "$DEVICE" 
     4        [ -n "$DEVICE" ] && { 
     5                uci_toggle_state network "$INTERFACE" device "$(uci -q get network.$INTERFACE.ifname)" 
     6                uci_toggle_state network "$INTERFACE" ifname "$DEVICE" 
     7        } 
    58} 
Note: See TracChangeset for help on using the changeset viewer.