diff options
author | dataking <dataking@gmail.com> | 2019-02-28 11:51:57 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-02-28 11:51:57 +0300 |
commit | 76ec39176a67e04b462443a685a03ec09d5cee1b (patch) | |
tree | 97ffff6846d7ce3639de7e8b8ae709fb1508b992 /include | |
parent | 7ae90d6405f35d7c2d7f745eae2f1f100079a3fb (diff) |
Fix #638. (#640)
* fix for issue #453; simply add RPi/Raspian path to PAM_FILE_LOCATIONS
* Only use data before # to handle inline comments in /etc/resolv.conf.
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_networking | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking index 69fcb4ae..e2503b60 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -123,7 +123,7 @@ LogText "Test: Checking /etc/resolv.conf file" if [ -f /etc/resolv.conf ]; then LogText "Result: Found /etc/resolv.conf file" - FIND=$(${GREPBINARY} '^nameserver' /etc/resolv.conf | ${TRBINARY} -d '\t' | ${SEDBINARY} 's/nameserver*//g' | uniq) + FIND=$(${GREPBINARY} '^nameserver' /etc/resolv.conf | ${TRBINARY} -d '\t' | ${SEDBINARY} 's/nameserver*//g' | uniq | ${CUTBINARY} -d# -f1) if [ ! -z "${FIND}" ]; then Display --indent 4 --text "- Testing nameservers" LogText "Test: Querying nameservers" |