DragonFly kernel List (threaded) for 2004-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Why doesn't this script work? (NOT DFly specific)
Jonathon McKitrick <jcm@xxxxxxxxxxxxxxxxx> wrote in
news:20040219231954.GB58630@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.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]