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
0ced67ed
Commit
0ced67ed
authored
Oct 15, 2017
by
Igor Pečovnik
Committed by
GitHub
Oct 15, 2017
Browse files
Merge pull request #12 from cztian/patch-1
Fixing Internet Connection Error
parents
1dcaebe7
c6346e3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
0ced67ed
...
...
@@ -22,7 +22,7 @@ fi
#-----------------------------------------------------------------------------------------------------------------------------------------#
# check if we have internet connection to install dependencies
#
echo
-e
"GET http://g
oogle
.com HTTP/1.0
\n\n
"
| nc g
oogle
.com 80
>
/dev/null 2>&1
echo
-e
"GET http://g
ithub
.com HTTP/1.0
\n\n
"
| nc g
ithub
.com 80
>
/dev/null 2>&1
if
[[
$?
-ne
0
]]
;
then
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."
...
...
@@ -90,4 +90,4 @@ do
;;
esac
done
#-----------------------------------------------------------------------------------------------------------------------------------------#
\ No newline at end of file
#-----------------------------------------------------------------------------------------------------------------------------------------#
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