Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.package
Commits
c46266a1
Commit
c46266a1
authored
Jul 18, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip: fix ip command failed to find an exist addrlabel
parent
4ada13a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
windows/scripts/ip
windows/scripts/ip
+3
-3
No files found.
windows/scripts/ip
View file @
c46266a1
...
@@ -507,7 +507,7 @@ elif [[ $object == "addrlabel" ]] ; then
...
@@ -507,7 +507,7 @@ elif [[ $object == "addrlabel" ]] ; then
echo
"Error: no preifx"
echo
"Error: no preifx"
exit
1
exit
1
fi
fi
prefix
=
"
prefix=
$2
"
;
shift
;
shift
prefix
=
"
$2
"
;
shift
;
shift
if
[[
"
$1
"
==
"dev"
]]
;
then
if
[[
"
$1
"
==
"dev"
]]
;
then
shift
;
shift
shift
;
shift
...
@@ -523,9 +523,9 @@ elif [[ $object == "addrlabel" ]] ; then
...
@@ -523,9 +523,9 @@ elif [[ $object == "addrlabel" ]] ; then
if
[[
$command
==
"add"
]]
;
then
if
[[
$command
==
"add"
]]
;
then
netsh interface ipv6 show prefixpolicies |
grep
-q
-F
$prefix
&&
exit
0
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
else
ipcmd
=
"
$ipcmd
$command
prefixpolicy
$prefix
"
ipcmd
=
"
$ipcmd
$command
prefixpolicy
prefix=
$prefix
"
fi
fi
elif
[[
$command
==
"list"
]]
;
then
elif
[[
$command
==
"list"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment