mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-09 09:17:27 +08:00
luci-mod-admin-full: fix check for traceroute6 (#56)
Since busybox has moved traceroute6 from /usr/bin/ to /bin/, we need to check both locations. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit e4a86478e60d7a181dbf05ec9ba4d424ad91777b) Co-authored-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
3fe64081aa
commit
27291f846e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user