Commit e14b3d1a authored by Jondy Zhao's avatar Jondy Zhao

Remove all the virtual netcards installed by re6stent when uninstall slapos

parent df39a86c
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment