From d32fa897e44c3304cf15c1bf37c5aa8570b0e13e Mon Sep 17 00:00:00 2001 From: Shibby Date: Fri, 24 Feb 2012 15:49:03 +0100 Subject: [PATCH] WOL for VLAN Send magic package for each lan interface NOTE: temporary solution --- release/src/router/httpd/misc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/release/src/router/httpd/misc.c b/release/src/router/httpd/misc.c index fd5e14289d..32e40ebdf4 100644 --- a/release/src/router/httpd/misc.c +++ b/release/src/router/httpd/misc.c @@ -777,6 +777,17 @@ void wo_wakeup(char *url) *p = 0; eval("ether-wake", "-b", "-i", nvram_safe_get("lan_ifname"), mac); + + //temporary solution - shibby + if (nvram_get("lan1_ifname") != NULL) { + eval("ether-wake", "-b", "-i", nvram_safe_get("lan1_ifname"), mac); + } + if (nvram_get("lan2_ifname") != NULL) { + eval("ether-wake", "-b", "-i", nvram_safe_get("lan2_ifname"), mac); + } + if (nvram_get("lan3_ifname") != NULL) { + eval("ether-wake", "-b", "-i", nvram_safe_get("lan3_ifname"), mac); + } mac = p + 1; } } -- 2.11.4.GIT