diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-07-19 04:44:37 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-07-19 04:44:37 +0000 |
commit | 738572c617f791df2f34c13a6d982d688af069c7 (patch) | |
tree | e55ecab1f8a88c18d9e76df9b67cd0ccc897fe4f /etc/rc | |
parent | e21c3edac49f043437e2a2f973c20db89ad94b7f (diff) |
Replace test command with [].
OK halex@ krw@
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.452 2015/07/18 21:12:40 rpe Exp $ +# $OpenBSD: rc,v 1.453 2015/07/19 04:44:36 rpe Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -16,7 +16,7 @@ stripcom() { { while read _line ; do _line=${_line%%#*} # strip comments - test -z "$_line" && continue + [ -z "$_line" ] && continue echo $_line done } <$_file @@ -53,7 +53,7 @@ update_limit() { # Apply sysctl(8) settings. sysctl_conf() { - test -s /etc/sysctl.conf || return + [ -s /etc/sysctl.conf ] || return # delete comments and blank lines set -- `stripcom /etc/sysctl.conf` @@ -74,7 +74,7 @@ sysctl_conf() { # Apply mixerctl(1) settings. mixerctl_conf() { - test -s /etc/mixerctl.conf || return + [ -s /etc/mixerctl.conf ] || return # delete comments and blank lines set -- `stripcom /etc/mixerctl.conf` @@ -88,7 +88,7 @@ mixerctl_conf() { wsconsctl_conf() { local save_IFS="$IFS" - test -x /sbin/wsconsctl -a -s /etc/wsconsctl.conf || return + [ -x /sbin/wsconsctl -a -s /etc/wsconsctl.conf ] || return # delete comments and blank lines IFS=" " |