Roland Mainz writes: > - set -- `/usr/sbin/route -n add default \ > + x=`/usr/sbin/route -n add default \ > -gateway $router` > - [ $? -ne 0 -a "x$5" = "x$route_IP:" ] \ > + res=$? > + set -- $x > + [ ${res} -ne 0 -a "x$5" = "x$route_IP:" ] \ > && do_delete=no
I think that still leaves us with some mysteries, such as why the original poster's system "works." Does he have junk in his /etc/defaultrouter file that we just didn't previously detect? Did something get broken in /usr/sbin/route such that it doesn't return error codes properly? -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677