summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-net
blob: 50cc9a58468b0903f1fd2117cb5497fec0b4db7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

case $(hostname -s) in
	mother|po-rbo) ping="ping -c1 -w1 1.1.1.1" ;;
	mars)          ping="ping -c1 -t1 1.1.1.1" ;;
esac
if ifconfig | grep -E '^tun|^vpn' >/dev/null 2>&1; then
	echo -n "  "
fi
if ! $ping >/dev/null 2>&1; then
	echo "ﰸ "
	return
fi

echo " "