Olaf Hering
a23ad95876
- reduce resource usage in hv_kvp_daemon (175c71c2) - reduce resouce usage in hv_get_dns_info helper (a4d024fe) - hv_kvp_daemon: Pass NIC name to hv_get_dns_info as well (07dfa6e8) - terminate fcopy daemon if read from uio fails (a9640fcd) - change permissions of NetworkManager configuration file (91ae69c7) - Fix a complier warning in the fcopy uio daemon (cb1b78f1) - remove obsolete kvptest.ps1.txt which failed since a decade - remove obsolete rpm postinstall code for SLE11SP2 OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=162
18 lines
646 B
Bash
18 lines
646 B
Bash
#!/bin/sh
|
|
|
|
# This script parses /etc/resolv.conf to retrive DNS information.
|
|
# In the interest of keeping the KVP daemon code free of distro specific
|
|
# information; the kvp daemon code invokes this external script to gather
|
|
# DNS information.
|
|
# This script is expected to print the nameserver values to stdout.
|
|
# Each Distro is expected to implement this script in a distro specific
|
|
# fashion. For instance on Distros that ship with Network Manager enabled,
|
|
# this script can be based on the Network Manager APIs for retrieving DNS
|
|
# entries.
|
|
|
|
if test -f /etc/resolv.conf
|
|
then
|
|
exec awk -- '/^nameserver/ { print $2 }' /etc/resolv.conf
|
|
fi
|
|
exit 0
|