#!/bin/sh teste=`ifconfig | grep ppp0` echo $? echo $teste if [ "$teste" -eq 1 ] then echo "nao tem vpn" fi teste=`ifconfig | grep wlan0 | wc -l`; if [ $teste -eq 0 ]; then echo "nao tem vpn" fi