wgengine/router: warn about another variation of busybox's `ip`.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/395/head
David Anderson 5 years ago
parent bb55694c95
commit 7fb33123d3

@ -544,7 +544,7 @@ func (r *linuxRouter) delBypassRule() error {
// the user towards the correct fix. See // the user towards the correct fix. See
// https://github.com/tailscale/tailscale/issues/368 for an // https://github.com/tailscale/tailscale/issues/368 for an
// example of this issue. // 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 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) return fmt.Errorf("listing ip rules: %v\n%s", err, out)

Loading…
Cancel
Save