summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/114-raeth-udhcpc-pid.patch
blob: ea36fdee98e8fb34033d504150daecf2f62d7990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: linux-3.10.14/drivers/net/raeth/raether.c
===================================================================
--- linux-3.10.14.orig/drivers/net/raeth/raether.c
+++ linux-3.10.14/drivers/net/raeth/raether.c
@@ -1354,7 +1354,11 @@ void kill_sig_workq(struct work_struct *
 	struct task_struct *p = NULL;
 
 	//read udhcpc pid from file, and send signal USR2,USR1 to get a new IP
-	fp = filp_open("/var/run/udhcpc.pid", O_RDONLY, 0);
+#if defined(CONFIG_RALINK_MT7621) || defined(CONFIG_ARCH_MT7623)
+	fp = filp_open("/var/run/udhcpc-eth1.pid", O_RDONLY, 0);
+#else
+	fp = filp_open("/var/run/udhcpc-eth0.2.pid", O_RDONLY, 0);
+#endif
 	if (IS_ERR(fp))
 	    return;