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
e14b3d1a
Commit
e14b3d1a
authored
May 30, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all the virtual netcards installed by re6stent when uninstall slapos
parent
df39a86c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
windows/scripts/pre-uninstall.sh
windows/scripts/pre-uninstall.sh
+14
-2
No files found.
windows/scripts/pre-uninstall.sh
View file @
e14b3d1a
...
@@ -6,14 +6,26 @@
...
@@ -6,14 +6,26 @@
#
#
# It will do:
# It will do:
#
#
# 1. Remove
service cygserver
# 1. Remove
virtual netcards installed by re6stnet
#
#
# 2. Remove service syslog-ng
# 2. Remove service
cygserver and
syslog-ng
#
#
if
[[
!
"
$(
whoami
)
"
==
"Administrator"
]]
;
then
if
[[
!
"
$(
whoami
)
"
==
"Administrator"
]]
;
then
exit
1
exit
1
fi
fi
#
# Remove virtual netcard installed by re6stnet
#
for
ifname
in
$(
netsh interface show interface | gawk
'{ print $3 }'
)
;
do
if
[[
(
"
$ifname
"
==
re6stnet
*
)
&&
(
"
$ifname
"
!=
"re6stnet-lo"
)
]]
;
then
ip vpntap del dev
$ifname
mode
true
fi
done
#
# Remove services installed by cygwin
#
cygrunsrv.exe
--remove
syslog-ng
cygrunsrv.exe
--remove
syslog-ng
cygrunsrv.exe
--remove
cygserver
cygrunsrv.exe
--remove
cygserver
...
...
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