On Fri, Oct 07, 2011 at 11:40:05AM +0200, Roberto Lumbreras wrote: > { # Do we have a default route? If so put chronyd online. > - if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep UG | cut -f 1 > -d ' ' | grep -q '0\.0\.0\.0' > + if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep -q > '^0\.0\.0\.0'
I don't know if it's possible for a default route not to be up, but it may be safer to keep grepping for "U", and only drop "G". -- <liiwi> udp - universal dropping of an pigeon -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org