On Feb 18, 2012, at 9:35 AM, Rogan Creswick wrote: > Quoting $NEWIP in the conditional will probably fix this. eg: > > if [ "$NEWIP" != "$OLDIP" ]; > > so you at least end up with: > > if [ "" != "$OLDIP" ]; > > which still makes some sense.
The only problem I see with this is then the script could try to set DNS to an empty string. It wouldn't handle transient errors well. As it is, the script fails, and DNS remains the same. At least, I think that's what may happen. Russell Johnson [email protected] _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
