diff options
author | Doug Barton <dougb@FreeBSD.org> | 2000-12-17 08:16:06 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2000-12-17 08:16:06 +0000 |
commit | e14563a3f35eb1e38192a44cf6dc60654037ecc5 (patch) | |
tree | a98a574af6ab7906a54de9f0e16e4f0cb94b2a8b /etc/security | |
parent | 16cd6db04f767eb5a4996f246e51297960145d84 (diff) | |
download | src-e14563a3f35eb1e38192a44cf6dc60654037ecc5.tar.gz src-e14563a3f35eb1e38192a44cf6dc60654037ecc5.zip |
Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line
* Single quotes for lines with no variable interpolation
* Double quotes if there is
* Capitalize each word that begins a line
* Make echo -n 'Doing foo:' ... echo '.' more of a standard
No functionality changes
Notes
Notes:
svn path=/head/; revision=70108
Diffstat (limited to 'etc/security')
-rw-r--r-- | etc/security | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/security b/etc/security index ef4c5baf2508..5f4e7f8191f5 100644 --- a/etc/security +++ b/etc/security @@ -62,7 +62,7 @@ host=`hostname` umask 027 -echo "checking setuid files and devices:" +echo 'Checking setuid files and devices:' # Don't have ncheck, but this does the equivalent of the commented out block. # Note that one of the original problems, the possibility of overrunning @@ -81,7 +81,7 @@ done | xargs -0 -n 20 ls -liTd | sort +10 > ${TMP} if [ ! -f ${LOG}/setuid.today ]; then [ $rc -lt 1 ] && rc=1 separator - echo "no ${LOG}/setuid.today" + echo "No ${LOG}/setuid.today" cp ${TMP} ${LOG}/setuid.today || rc=3 fi @@ -101,7 +101,7 @@ if mount -p | $cmd > $TMP; then if [ ! -f $LOG/mount.today ]; then [ $rc -lt 1 ] && rc=1 separator - echo "no $LOG/mount.today" + echo "No $LOG/mount.today" cp $TMP $LOG/mount.today || rc=3 fi if ! cmp $LOG/mount.today $TMP >/dev/null 2>&1; then @@ -115,7 +115,7 @@ if mount -p | $cmd > $TMP; then fi separator -echo "checking for uids of 0:" +echo 'Checking for uids of 0:' n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | tee /dev/stderr | sed -e '/^root 0$/d' -e '/^toor 0$/d' | @@ -123,7 +123,7 @@ n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | [ $n -gt 0 -a $rc -lt 1 ] && rc=1 separator -echo "checking for passwordless accounts:" +echo 'Checking for passwordless accounts:' n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}' /etc/master.passwd | tee /dev/stderr | wc -l) [ $n -gt 0 -a $rc -lt 1 ] && rc=1 @@ -134,7 +134,7 @@ if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then if [ ! -f ${LOG}/ipfw.today ]; then [ $rc -lt 1 ] && rc=1 separator - echo "no ${LOG}/ipfw.today" + echo "No ${LOG}/ipfw.today" cp ${TMP} ${LOG}/ipfw.today || rc=3 fi @@ -157,7 +157,7 @@ if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then if [ -s "${TMP}" ]; then [ $rc -lt 1 ] && rc=1 separator - echo "ipfw log limit reached:" + echo 'ipfw log limit reached:' cat ${TMP} fi fi @@ -168,7 +168,7 @@ if dmesg 2>/dev/null > ${TMP}; then if [ ! -f ${LOG}/dmesg.today ]; then [ $rc -lt 1 ] && rc=1 separator - echo "no ${LOG}/dmesg.today" + echo "No ${LOG}/dmesg.today" cp ${TMP} ${LOG}/dmesg.today || rc=3 fi |