From e4a86478e60d7a181dbf05ec9ba4d424ad91777b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 21 Jul 2018 14:18:06 +0200 Subject: [PATCH] luci-mod-admin-full: fix check for traceroute6 Since busybox has moved traceroute6 from /usr/bin/ to /bin/, we need to check both locations. Fixes #1973. Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/admin_network/diagnostics.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm index d9217894f..b409c8b03 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm @@ -8,7 +8,7 @@ <% local fs = require "nixio.fs" local has_ping6 = fs.access("/bin/ping6") or fs.access("/usr/bin/ping6") -local has_traceroute6 = fs.access("/usr/bin/traceroute6") +local has_traceroute6 = fs.access("/bin/traceroute6") or fs.access("/usr/bin/traceroute6") local dns_host = luci.config.diag and luci.config.diag.dns or "dev.openwrt.org" local ping_host = luci.config.diag and luci.config.diag.ping or "dev.openwrt.org" -- 2.25.1