Jeff Newmiller wrote:

> grep is not grep on LRP... it is implemented with sed, and apparently the
> return values do not behave the same.

Informational note: Oxygen uses busybox grep.

> Try:
> 
>   xx=`ip ro | grep 10.10.10.0`
>   if test ! "$xx" ; then
>     # do whatever you want if route is not there
>   fi

Or:

if [ -z "$(ip ro | grep 10.10.10.0)" ] ; then
   :    # do whatever if route is missing...
fi

Note that "[" (test) in Oxygen is busybox test too - in fact, Oxygen
uses busybox quite extensively.

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to