1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/package/busybox/patches/050-for_econet_sdk.patch
2022-11-27 10:16:14 +00:00

21 lines
685 B
Diff

Index: busybox-1_20_1/init/init.c
===================================================================
--- busybox-1_20_1.orig/init/init.c 2012-05-27 17:48:55.000000000 -0700
+++ busybox-1_20_1/init/init.c 2015-08-28 05:42:12.771280491 -0700
@@ -746,6 +746,15 @@
kill(-1, SIGKILL);
message(L_CONSOLE, "Sent SIG%s to all processes", "KILL");
+#ifdef TCSUPPORT_WAN_GPON
+ message(L_CONSOLE | L_LOG, "Disable PON PHY!!");
+ system("echo gpon startup 2 > /proc/gpon/debug");
+ sleep(1);
+ sync();
+ /*Use the watchdog reset system*/
+ system("killall tcwdog");
+ system("echo 1 > /proc/watchdog_reset");
+#endif
sync();
/*sleep(1); - callers take care about making a pause */
}