OSDN Git Service
(root)
/
rebornos
/
cnchi-gnome-mac-osdn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2021.01.04 Update
[rebornos/cnchi-gnome-mac-osdn.git]
/
airootfs
/
usr
/
bin
/
pacman-boot.sh
1
#!/bin/bash
2
3
NETWORK_ALIVE=`ping -c1 google.com 2>&1 | grep unknown`
4
5
while [[ "$NETWORK_ALIVE" != "" ]];do
6
NETWORK_ALIVE=`ping -c1 google.com 2>&1 | grep unknown`
7
sleep 10
8
done
9
10
if [[ NETWORK_ALIVE == '' ]];then
11
pacman -Syy
12
fi