From 7fb33123d395e307d14ad4aa88ff8c58035e6b02 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 15 May 2020 20:47:46 +0000 Subject: [PATCH] wgengine/router: warn about another variation of busybox's `ip`. Signed-off-by: David Anderson --- wgengine/router/router_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/router/router_linux.go b/wgengine/router/router_linux.go index a037b4054..3a20fd2e4 100644 --- a/wgengine/router/router_linux.go +++ b/wgengine/router/router_linux.go @@ -544,7 +544,7 @@ func (r *linuxRouter) delBypassRule() error { // the user towards the correct fix. See // https://github.com/tailscale/tailscale/issues/368 for an // example of this issue. - if bytes.Contains(out, []byte("ip: ignoring all arguments")) { + if bytes.Contains(out, []byte("ip: ignoring all arguments")) || bytes.Contains(out, []byte("does not take any arguments")) { return errors.New("cannot list ip rules, `ip` appears to be the busybox implementation. Please install iproute2") } return fmt.Errorf("listing ip rules: %v\n%s", err, out)