Why doesn't this script work? (NOT DFly specific)

Justin C. Sherrill justin at shiningsilence.com
Thu Feb 19 19:07:15 PST 2004


Jonathon McKitrick <jcm at xxxxxxxxxxxxxxxxx> wrote in
news:20040219231954.GB58630 at xxxxxxxxxxxxxxxxxxxxxxx: 

> netstat -rn | grep -q tun
> retval=$?
> 
> # if not, dial in
> if [ $retval -eq 0 ]; then

Wouldn't $retval never contain anything other than 0?  -q keeps grep
from printing anything, as I recall.  





More information about the Kernel mailing list