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
Kasra Jamshidi
slapos.package
Commits
199fa0b1
Commit
199fa0b1
authored
Apr 17, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ip script, do nothing if tap-driver has been installed.
parent
296bbc27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
windows/scripts/ip
windows/scripts/ip
+10
-0
No files found.
windows/scripts/ip
View file @
199fa0b1
...
...
@@ -330,6 +330,15 @@ function install_tap_driver()
local
CSCRIPT
=
$(
which cscript
)
local
GETSCRIPT
=
$(
cygpath
-m
/etc/openvpn/get_last_connection.vbs
)
# check if ifname has been installed
if
[[
!
"
$1
"
==
""
]]
;
then
netsh interface show interface |
grep
-q
"
\\
b
$1
\\
b"
if
((
$?
==
0
))
;
then
echo
"Nothing need to do,
\"
$1
\"
has been installed."
return
0
fi
fi
if
[[
!
-f
$FILENAME
]]
;
then
echo
"Error: no TAP-WINDOWS driver inf file found"
return
1
...
...
@@ -396,6 +405,7 @@ EOF
WScript.Quit(0)
EOF
fi
# nodosfilewarning
local
OLDNAME
=
$(
$CSCRIPT
//Nologo
$GETSCRIPT
)
if
((
$?
==
0
))
;
then
netsh interface
set
interface
name
=
"
$OLDNAME
"
newname
=
"
$1
"
...
...
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