Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Applications
manjaro-architect
Commits
0b672c24
Commit
0b672c24
authored
Apr 06, 2017
by
Bernhard Landauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use curl for connectivity test
parent
e04f4498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bin/setup
bin/setup
+1
-1
lib/util.sh
lib/util.sh
+1
-1
No files found.
bin/setup
View file @
0b672c24
...
...
@@ -12,7 +12,7 @@
[[ -e /run/miso/bootmnt ]] && setfont ter-116n
while [[ !
$(ping -c 2 manjaro.org)
]]; do
while [[ !
-n "$(curl -Is https://manjaro.org | head -1)"
]]; do
if [[ $(cat /proc/1/comm) == "systemd" ]];then
if [[ $(systemctl is-active NetworkManager) == "active" ]]; then
dialog --backtitle ":: Manjaro Architect ::" --yesno "\nPlease connect to the internet:\n" 0 0 && \
...
...
lib/util.sh
View file @
0b672c24
...
...
@@ -341,7 +341,7 @@ set_keymap() {
}
mk_connection
()
{
if
[[
!
$(
ping
-c
2 google.com
)
]]
;
then
if
[[
!
-n
"
$(
curl
-Is
https://manjaro.org |
head
-1
)
"
]]
;
then
DIALOG
"
$_NoCon
"
--yesno
"
\n
$_EstCon
\n
"
0 0
&&
$NW_CMD
&&
return
0
||
clear
&&
exit
0
fi
}
...
...
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