Message ID | 20181130073004.18051-3-zhouyousong@yunionyun.com |
---|---|
State | Accepted |
Headers | show |
Series | build: patches from OpenWrt | expand |
On Fri, Nov 30, 2018 at 07:30:03AM +0000, Yousong Zhou wrote: > From: Yousong Zhou <yszhou4tech@gmail.com> > > 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> Thanks, I applied patches 2 and 3. I'll wait for a revision of patch 1.
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