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
Łukasz Nowak
slapos.package
Commits
75a4a33d
Commit
75a4a33d
authored
Apr 19, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'ip -4 addr' command.
parent
ed92f8eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
windows/scripts/ip
windows/scripts/ip
+4
-2
No files found.
windows/scripts/ip
View file @
75a4a33d
...
@@ -304,7 +304,7 @@ function format_interface_name()
...
@@ -304,7 +304,7 @@ function format_interface_name()
return
1
return
1
fi
fi
local
guid
=
"
$1
"
local
guid
=
"
$1
"
if
!
[[
"
${
guid
:0:1
}
"
==
"{"
]]
;
then
if
!
[[
"
${
guid
:0:1
}
"
==
"{"
]]
;
then
echo
$1
echo
$1
else
else
...
@@ -425,7 +425,7 @@ function uninstall_tap_driver()
...
@@ -425,7 +425,7 @@ function uninstall_tap_driver()
local
DEVCON
=
$(
which devcon.exe
)
local
DEVCON
=
$(
which devcon.exe
)
local
CSCRIPT
=
$(
which cscript.exe
)
local
CSCRIPT
=
$(
which cscript.exe
)
local
GETSCRIPT
=
$(
cygpath
-m
/etc/openvpn/get_pnpid_connection.vbs
)
local
GETSCRIPT
=
$(
cygpath
-m
/etc/openvpn/get_pnpid_connection.vbs
)
if
[[
"
$1
"
==
""
]]
;
then
if
[[
"
$1
"
==
""
]]
;
then
echo
"Error: missing connection name"
echo
"Error: missing connection name"
return
1
return
1
...
@@ -541,6 +541,7 @@ if [[ $object == "link" ]] ; then
...
@@ -541,6 +541,7 @@ if [[ $object == "link" ]] ; then
elif
[[
$object
==
"addr"
]]
;
then
elif
[[
$object
==
"addr"
]]
;
then
if
[[
$command
==
"add"
]]
||
[[
$command
==
"del"
]]
;
then
if
[[
$command
==
"add"
]]
||
[[
$command
==
"del"
]]
;
then
mask
=
$(
prefix_to_netmask
$(
basename
$1
))
address
=
$(
dirname
$1
)
address
=
$(
dirname
$1
)
shift
shift
elif
[[
$command
==
"list"
]]
;
then
elif
[[
$command
==
"list"
]]
;
then
...
@@ -554,6 +555,7 @@ elif [[ $object == "addr" ]] ; then
...
@@ -554,6 +555,7 @@ elif [[ $object == "addr" ]] ; then
if
[[
"
$opt_family
"
==
"ipv4"
||
"
$opt_family
"
==
""
]]
;
then
if
[[
"
$opt_family
"
==
"ipv4"
||
"
$opt_family
"
==
""
]]
;
then
ipcmd
=
"netsh interface ip
$command
address"
ipcmd
=
"netsh interface ip
$command
address"
address
=
"
$address
$mask
"
elif
[[
"
$opt_family
"
==
"ipv6"
]]
;
then
elif
[[
"
$opt_family
"
==
"ipv6"
]]
;
then
ipcmd
=
"netsh interface ipv6
$command
address"
ipcmd
=
"netsh interface ipv6
$command
address"
else
else
...
...
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