We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07dfa6e commit a4d024fCopy full SHA for a4d024f
tools/hv/hv_get_dns_info.sh
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/sh
2
3
# This example script parses /etc/resolv.conf to retrive DNS information.
4
# In the interest of keeping the KVP daemon code free of distro specific
@@ -10,4 +10,4 @@
10
# this script can be based on the Network Manager APIs for retrieving DNS
11
# entries.
12
13
-cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'
+exec awk '/^nameserver/ { print $2 }' /etc/resolv.conf 2>/dev/null
0 commit comments