diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2018-01-11 21:09:27 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2018-01-11 21:09:27 +0000 |
commit | abd4e5c8dce4dbeb313abd47e3a55857f9902df1 (patch) | |
tree | 2095803bb120641ad385043e2fb9f90aeb6e462f /etc/rc.d/mountd | |
parent | 7fe67fc4bf27084ca19f1506aee654b215dc032f (diff) |
- 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
Diffstat (limited to 'etc/rc.d/mountd')
-rw-r--r-- | etc/rc.d/mountd | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |