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
Lisa Casino
slapos.package
Commits
0d8e02ff
Commit
0d8e02ff
authored
Jul 01, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix removed interface still seen by netsh interface show interface
parent
5be3ada3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
windows/scripts/ip
windows/scripts/ip
+1
-1
windows/scripts/pre-uninstall.sh
windows/scripts/pre-uninstall.sh
+1
-1
No files found.
windows/scripts/ip
View file @
0d8e02ff
...
...
@@ -335,7 +335,7 @@ function install_tap_driver()
# check if ifname has been installed
if
[[
!
"
$1
"
==
""
]]
;
then
netsh interface show interface |
grep
-q
"
\\
b
$1
\\
b"
netsh interface
ipv6
show interface |
grep
-q
"
\\
b
$1
\\
b"
if
((
$?
==
0
))
;
then
echo
"Nothing need to do,
\"
$1
\"
has been installed."
return
0
...
...
windows/scripts/pre-uninstall.sh
View file @
0d8e02ff
...
...
@@ -15,7 +15,7 @@
#
# Remove virtual netcard installed by re6stnet
#
for
ifname
in
$(
netsh interface
show interface | gawk
'{ print $3
}'
)
;
do
for
ifname
in
$(
netsh interface
ipv6 show interface | gawk
'{ print $5
}'
)
;
do
if
[[
(
"
$ifname
"
==
re6stnet
*
)
&&
(
"
$ifname
"
!=
"re6stnet-lo"
)
]]
;
then
echo
Removing network connection:
$ifname
ip vpntap del dev
$ifname
mode
true
...
...
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