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
d75240d4
Commit
d75240d4
authored
Mar 06, 2019
by
Igor Pecovnik
Browse files
Internet detection that also works behind proxy
https://github.com/armbian/config/issues/35
parent
6a2567dd
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
d75240d4
...
@@ -24,7 +24,7 @@ fi
...
@@ -24,7 +24,7 @@ fi
#
#
# check for internet connection to install dependencies
# check for internet connection to install dependencies
#
#
echo
-e
"GET
http://github.com
HTTP/1.0
\n\n
"
| nc github.com 80
>
/dev/null 2>&1
wget
-q
--spider
http://github.com
if
[[
$?
-ne
0
]]
;
then
if
[[
$?
-ne
0
]]
;
then
read
-n
1
-s
-p
"Warning. Configurator can't work properly without internet connection.
\
read
-n
1
-s
-p
"Warning. Configurator can't work properly without internet connection.
\
Press CTRL C to stop to stop or any key to ignore and continue."
Press CTRL C to stop to stop or any key to ignore and continue."
...
...
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