From abd4e5c8dce4dbeb313abd47e3a55857f9902df1 Mon Sep 17 00:00:00 2001 From: Robert Peichaer Date: Thu, 11 Jan 2018 21:09:27 +0000 Subject: - change [] tests to [[]] - change -a, -o to &&, || inside [[]] - remove unecessary quoting inside [[]] - remove X"" constructs inside [[]] - remove \ (line continuation) in case of &&, || and pipes - replace backticks with $() discussed with and OK aja@ OK tb --- etc/rc.d/mountd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/rc.d/mountd') diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd index c18337991fc..ffedeb74fe9 100644 --- a/etc/rc.d/mountd +++ b/etc/rc.d/mountd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: mountd,v 1.7 2018/01/11 19:52:12 rpe Exp $ +# $OpenBSD: mountd,v 1.8 2018/01/11 21:09:26 rpe Exp $ daemon="/sbin/mountd" @@ -10,8 +10,8 @@ pexp="mountd: \[priv\]" rc_stop=NO rc_pre() { - [ -s /etc/exports ] && grep -qv '^#' /etc/exports && \ - rm -f /var/db/mountdtab && \ + [[ -s /etc/exports ]] && grep -qv '^#' /etc/exports && + rm -f /var/db/mountdtab && echo -n > /var/db/mountdtab } -- cgit v1.2.3