Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
d99fe564
Unverified
Commit
d99fe564
authored
Jan 01, 2019
by
Igor Pečovnik
Committed by
GitHub
Jan 01, 2019
Browse files
bugfix
parent
3d7c6bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
d99fe564
...
...
@@ -1563,7 +1563,7 @@ TTY_X=$(($(stty size | awk '{print $2}')-6)) # determine terminal width
TTY_Y=$(($(stty size | awk '{print $1}')-6)) # determine terminal height
distribution=$(lsb_release -cs)
family=$(lsb_release -is)
DEFAULT_ADAPTER=$(ip -4 route ls | grep default | grep -Po '(?
<
=
dev
)(\
S
+)')
DEFAULT_ADAPTER=$(ip -4 route ls | grep default |
tail -1 |
grep -Po '(?
<
=
dev
)(\
S
+)')
serverIP=
$(ip
-4
addr
show
dev
$
DEFAULT_ADAPTER
|
awk
'/
inet
/
{
print
$2}'
|
cut
-d
'/'
-f1
)
set
${
serverIP
//./
}
SUBNET=
"$1.$2.$3."
...
...
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