summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-net
blob: f11684426d96a21378bfe5e9822c0b851254fa2f (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 1.1.1.1 >/dev/null 2>&1; then
	echo " "
	return
fi

echo " "