diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-24 09:43:14 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-24 09:43:14 +0000 |
commit | 60e7b273126249b96f6dd4644e430ffd76bb82ee (patch) | |
tree | a99f09677c1aa06329a7f6fe704d148c9930f774 /templates/traceroute | |
parent | 4a9dadf356a83ee0270d3848c506d1ca969d2565 (diff) | |
download | vyatta-op-60e7b273126249b96f6dd4644e430ffd76bb82ee.tar.gz vyatta-op-60e7b273126249b96f6dd4644e430ffd76bb82ee.zip |
prevents showing backend error to user on traceroute when name-server not set
Diffstat (limited to 'templates/traceroute')
-rw-r--r-- | templates/traceroute/node.tag/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def index 83a3f31..cf60ec4 100644 --- a/templates/traceroute/node.tag/node.def +++ b/templates/traceroute/node.tag/node.def @@ -12,7 +12,7 @@ run: /usr/bin/traceroute $2 echo else - if cat /etc/resolv.conf | grep -q nameserver + if cat /etc/resolv.conf 2> /dev/null | grep -q nameserver then if /usr/bin/host $2 &> /dev/null then |