blob: 6a3256b1668361da04cd40b0e444958222a524eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# if ifconfig | grep -F ' active' >/dev/null; then
if ifconfig | grep '^tun' >/dev/null 2>&1; then
echo -n "歷 "
fi
if ! ping -q -c1 -t1 8.8.8.8 >/dev/null 2>&1; then
echo " "
return
fi
echo " "
|