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
6c309f10
Commit
6c309f10
authored
Apr 07, 2017
by
Igor Pecovnik
Browse files
Check if internet connection exists and issue a warning if it doesnt
parent
74786eaf
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
6c309f10
...
...
@@ -14,6 +14,10 @@ if [[ $EUID != 0 ]]; then
exit
fi
echo
-e
"GET http://google.com HTTP/1.0
\n\n
"
| nc google.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."
fi
function
get_wlan_interface
()
{
...
...
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