Changeset 19142


Ignore:
Timestamp:
04/26/12 03:03:32 (14 months ago)
Author:
BrainSlayer
Message:

try from here

Location:
src/router
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/router/rc/Makefile

    r19013 r19142  
    209209ifeq ($(CONFIG_USR8200),y) 
    210210CFLAGS += -DHAVE_USR8200 
     211endif 
     212ifeq ($(CONFIG_IPETH),y) 
     213CFLAGS += -DHAVE_IPETH 
    211214endif 
    212215ifeq ($(CONFIG_OLED),y) 
  • src/router/rc/hotplug.c

    r17412 r19142  
    4040        if (argc >= 2) { 
    4141//              sysprintf("echo received %s >> /tmp/hotplugs",argv[1]); 
     42//              sysprintf("env >> /tmp/hotplugs",argv[1]); 
    4243                if (!strcmp(argv[1], "net")) { 
     44#ifdef HAVE_IPETH 
     45                        char *action = getenv("ACTION"); 
     46                        char *id = getenv("PHYSDEVDRIVER"); 
     47//                      sysprintf("echo cation %s %s >> /tmp/hotplugs",id,action); 
     48                        if (action && !strcmp(action,"add") && id && !strcmp(id,"ipheth")) { 
     49                                eval("ipheth-loop"); 
     50                                return 0; 
     51                        } 
     52#endif 
    4353                        start_service("hotplug_net"); 
     54                        action = getenv("ACTION"); 
     55 
    4456                        return 0; 
    4557                } 
  • src/router/services/networking/network.c

    r19138 r19142  
    38643864                insmod("ipheth"); 
    38653865                stop_process("ipheth-loop","IPhone Pairing daemon"); 
     3866                eval("usbmuxd"); 
    38663867                eval("ifconfig","iph0","up"); 
    3867                 system("ipheth-loop"); 
    38683868                start_dhcpc("iph0", NULL, NULL, 1); 
    38693869        } 
Note: See TracChangeset for help on using the changeset viewer.