summaryrefslogtreecommitdiff
path: root/utilities/ovs-save
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-11-30 07:30:03 +0000
committerBen Pfaff <blp@ovn.org>2018-12-03 13:11:47 -0800
commit5c92852807e5fadfb0807e637d359496cbab2278 (patch)
tree541e6ba877b0eb69e1654090c78509b6a40a5cd4 /utilities/ovs-save
parent81863a33ba072fa5357424bce7c774390acc6cd8 (diff)
downloadopenvswitch-5c92852807e5fadfb0807e637d359496cbab2278.tar.gz
ovs-save: compatible with busybox ip command
Busybox ip command will have exit code 1 for `ip -V` or `ip help` etc., use `ip link show` to cover both iproute2 and busybox ip command Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'utilities/ovs-save')
-rwxr-xr-xutilities/ovs-save2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-save b/utilities/ovs-save
index bcb8e9b8a..1ba36e9de 100755
--- a/utilities/ovs-save
+++ b/utilities/ovs-save
@@ -38,7 +38,7 @@ EOF
}
save_interfaces () {
- if (ip -V) > /dev/null 2>&1; then :; else
+ if (ip link show) > /dev/null 2>&1; then :; else
echo "$0: ip not found in $PATH" >&2
exit 1
fi