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/isakmpd | |
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/isakmpd')
-rw-r--r-- | etc/rc.d/isakmpd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/isakmpd b/etc/rc.d/isakmpd index 70cf07d7721..1f554005b9c 100644 --- a/etc/rc.d/isakmpd +++ b/etc/rc.d/isakmpd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: isakmpd,v 1.2 2018/01/11 19:52:12 rpe Exp $ +# $OpenBSD: isakmpd,v 1.3 2018/01/11 21:09:26 rpe Exp $ daemon="/sbin/isakmpd" @@ -9,7 +9,7 @@ daemon="/sbin/isakmpd" pexp="isakmpd: monitor \[priv\]" rc_pre() { - [ X"${sasyncd_flags}" != X"NO" ] && \ + [[ ${sasyncd_flags} != NO ]] && daemon_flags="-S ${daemon_flags}" return 0 } |