summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-net
blob: aa7485b8b1d4e04f9b87e63af22bfcd0e075aadc (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 "歷 "