Changeset 28499


Ignore:
Timestamp:
2011-10-21T03:47:49+02:00 (5 years ago)
Author:
nbd
Message:

add an initial (experimental) version of netifd, disabled by default

Location:
trunk/package
Files:
22 added
2 edited
1 copied

Legend:

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

    r28495 r28499  
    1919  SECTION:=base 
    2020  CATEGORY:=Base system 
     21  DEPENDS:=@!USE_NETIFD 
    2122  TITLE:=Network scripts for the OpenWrt base system 
    2223  URL:=http://openwrt.org/ 
  • trunk/package/base-files/Makefile

    r28495 r28499  
    3535  SECTION:=base 
    3636  CATEGORY:=Base system 
    37   DEPENDS:=+base-files-network 
     37  DEPENDS:=+!USE_NETIFD:base-files-network +USE_NETIFD:netifd 
    3838  TITLE:=Base filesystem for OpenWrt 
    3939  URL:=http://openwrt.org/ 
     
    6767endef 
    6868 
     69define Package/base-files/config 
     70  config USE_NETIFD 
     71    bool "Use netifd instead of the old network init scripts (experimental!)" 
     72        default n 
     73endef 
    6974 
    7075define Package/gcc/Default 
  • trunk/package/netifd/files/etc/hotplug.d/iface/00-netstate

    r28498 r28499  
    11[ ifup = "$ACTION" ] && { 
    2         uci_toggle_state network "$INTERFACE" up 1  
     2        uci_toggle_state network "$INTERFACE" up 1 
    33        uci_toggle_state network "$INTERFACE" connect_time $(sed -ne 's![^0-9].*$!!p' /proc/uptime) 
    44        [ -n "$DEVICE" ] && uci_toggle_state network "$INTERFACE" ifname "$DEVICE" 
Note: See TracChangeset for help on using the changeset viewer.