#!/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 " "