Changeset 19142
- Timestamp:
- 04/26/12 03:03:32 (14 months ago)
- Location:
- src/router
- Files:
-
- 3 edited
-
rc/Makefile (modified) (1 diff)
-
rc/hotplug.c (modified) (1 diff)
-
services/networking/network.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/rc/Makefile
r19013 r19142 209 209 ifeq ($(CONFIG_USR8200),y) 210 210 CFLAGS += -DHAVE_USR8200 211 endif 212 ifeq ($(CONFIG_IPETH),y) 213 CFLAGS += -DHAVE_IPETH 211 214 endif 212 215 ifeq ($(CONFIG_OLED),y) -
src/router/rc/hotplug.c
r17412 r19142 40 40 if (argc >= 2) { 41 41 // sysprintf("echo received %s >> /tmp/hotplugs",argv[1]); 42 // sysprintf("env >> /tmp/hotplugs",argv[1]); 42 43 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 43 53 start_service("hotplug_net"); 54 action = getenv("ACTION"); 55 44 56 return 0; 45 57 } -
src/router/services/networking/network.c
r19138 r19142 3864 3864 insmod("ipheth"); 3865 3865 stop_process("ipheth-loop","IPhone Pairing daemon"); 3866 eval("usbmuxd"); 3866 3867 eval("ifconfig","iph0","up"); 3867 system("ipheth-loop");3868 3868 start_dhcpc("iph0", NULL, NULL, 1); 3869 3869 }
Note: See TracChangeset
for help on using the changeset viewer.
