summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/114-raeth-udhcpc-pid.patch
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
commitb395e3b40e026a437b7179b78f1beddf2d02a7bc (patch)
treef3118474a7af11fffb228915dcffd7f2580d26ee /target/linux/ramips/patches/114-raeth-udhcpc-pid.patch
parente266de11dcd0b2d71c445b943bef2f50258fa314 (diff)
downloadmtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.zip
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.gz
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.bz2
target/linux/ramips: add all patches
Diffstat (limited to 'target/linux/ramips/patches/114-raeth-udhcpc-pid.patch')
-rwxr-xr-xtarget/linux/ramips/patches/114-raeth-udhcpc-pid.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/114-raeth-udhcpc-pid.patch b/target/linux/ramips/patches/114-raeth-udhcpc-pid.patch
new file mode 100755
index 0000000..ea36fde
--- /dev/null
+++ b/target/linux/ramips/patches/114-raeth-udhcpc-pid.patch
@@ -0,0 +1,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;
+