Commit c46266a1 authored by Jondy Zhao's avatar Jondy Zhao

ip: fix ip command failed to find an exist addrlabel

parent 4ada13a3
......@@ -507,7 +507,7 @@ elif [[ $object == "addrlabel" ]] ; then
echo "Error: no preifx"
exit 1
fi
prefix="prefix=$2"; shift; shift
prefix="$2"; shift; shift
if [[ "$1" == "dev" ]] ; then
shift; shift
......@@ -523,9 +523,9 @@ elif [[ $object == "addrlabel" ]] ; then
if [[ $command == "add" ]] ; then
netsh interface ipv6 show prefixpolicies | grep -q -F $prefix && exit 0
ipcmd="$ipcmd $command prefixpolicy $prefix $precedence $label"
ipcmd="$ipcmd $command prefixpolicy prefix=$prefix $precedence $label"
else
ipcmd="$ipcmd $command prefixpolicy $prefix"
ipcmd="$ipcmd $command prefixpolicy prefix=$prefix"
fi
elif [[ $command == "list" ]] ; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment