-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 324399 b: refs/heads/master c: d82c37c h: refs/heads/master i: 324397: b64c670 324395: e6bb767 324391: aac0c22 324383: 59d3203 v: v3
- Loading branch information
K. Y. Srinivasan
authored and
Greg Kroah-Hartman
committed
Sep 4, 2012
1 parent
dd836fb
commit 0e1e91b
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: d0cbc156a7689348e56ac9b871c988b59b9f9ff0 | ||
refs/heads/master: d82c37ce6896734a4a2a9b74c22084fe47824466 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# This example 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. | ||
|
||
cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }' |