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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.package
Commits
ec1112b8
Commit
ec1112b8
authored
Apr 19, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tell address family by address in ip script.
parent
75a4a33d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
windows/scripts/ip
windows/scripts/ip
+7
-0
No files found.
windows/scripts/ip
View file @
ec1112b8
...
...
@@ -543,6 +543,13 @@ elif [[ $object == "addr" ]] ; then
if
[[
$command
==
"add"
]]
||
[[
$command
==
"del"
]]
;
then
mask
=
$(
prefix_to_netmask
$(
basename
$1
))
address
=
$(
dirname
$1
)
if
[[
"
$opt_family
"
==
""
]]
;
then
if
[[
"
$address
"
==
*
:
*
]]
;
then
opt_family
=
"ipv6"
else
opt_family
=
"ipv4"
fi
fi
shift
elif
[[
$command
==
"list"
]]
;
then
command
=
"show"
...
...
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