From 8a42714f54b640c1638d71abcf2f4a6db5d36256 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 6 Jan 2018 20:28:14 +0200 Subject: [PATCH] etc/autofs: Cleanup trailing whitespaces This generates diff between these and FreeBSD scripts. --- etc/autofs/include_nis | 2 +- etc/autofs/special_media | 4 ++-- etc/autofs/special_noauto | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/autofs/include_nis b/etc/autofs/include_nis index e671c42288..68a0f1c799 100644 --- a/etc/autofs/include_nis +++ b/etc/autofs/include_nis @@ -44,7 +44,7 @@ # # The first form, with one argument, emits the entire named NIS map. # The second form, with two arguments, emits the map entry for the -# key given in the second argument. +# key given in the second argument. # # This script attempts to determine the names and IP addresses # of the local host. Map entries matching the local host are diff --git a/etc/autofs/special_media b/etc/autofs/special_media index cfbf16edc1..14bb791ef3 100755 --- a/etc/autofs/special_media +++ b/etc/autofs/special_media @@ -45,14 +45,14 @@ print_map_entry() { if [ "${_fstype}" = "ntfs" ]; then if [ -f "/usr/local/bin/ntfs-3g" ]; then - echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}" + echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}" else /usr/bin/logger -p info -t "special_media[$$]" \ "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-ntfs first" exit 1 fi else - echo "-fstype=${_fstype},nosuid :/dev/${_p}" + echo "-fstype=${_fstype},nosuid :/dev/${_p}" fi } diff --git a/etc/autofs/special_noauto b/etc/autofs/special_noauto index 219ec7ea69..09555cd92c 100755 --- a/etc/autofs/special_noauto +++ b/etc/autofs/special_noauto @@ -11,7 +11,7 @@ print_one() { local _mntpoint _mntpoint="${1%/}" - + sed 's/#.*//' /etc/fstab | awk ' $2 == "'"${_mntpoint}"'" && $4 ~ /noauto/ { if ($1 ~ /:/) { dev=$1 } else { dev=":"$1 } -- 2.11.4.GIT