Browse Source

test -> [

OPENBSD_2_4
deraadt 26 years ago
parent
commit
b0798df7ed
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/etc/rc

+ 5
- 5
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.71 1998/04/07 06:11:52 deraadt Exp $
# $OpenBSD: rc,v 1.72 1998/05/13 21:10:03 deraadt Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -236,7 +236,7 @@ if [ -f /etc/sysctl.conf ]; then
) )
fi fi
test -f /etc/rc.securelevel && . /etc/rc.securelevel
[ -f /etc/rc.securelevel ] && . /etc/rc.securelevel
if [ X${securelevel} != X"" ]; then if [ X${securelevel} != X"" ]; then
echo -n 'setting kernel security level: ' echo -n 'setting kernel security level: '
sysctl -w kern.securelevel=${securelevel} sysctl -w kern.securelevel=${securelevel}
@ -268,7 +268,7 @@ if [ "$vibackup" != "/var/tmp/vi.recover/vi.*" ]; then
for i in $vibackup; do for i in $vibackup; do
# Unmodified nvi editor backup files either have the # Unmodified nvi editor backup files either have the
# execute bit set or are zero length. Delete them. # execute bit set or are zero length. Delete them.
if test -x $i -o ! -s $i; then
if [ -x $i -o ! -s $i ]; then
rm $i rm $i
fi fi
done done
@ -281,7 +281,7 @@ if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then
# or that have no corresponding backup file. Else send mail # or that have no corresponding backup file. Else send mail
# to the user. # to the user.
recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i` recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i`
if test -n "$recfile" -a -s "$recfile"; then
if [ -n "$recfile" -a -s "$recfile" ]; then
sendmail -t < $i sendmail -t < $i
else else
rm $i rm $i
@ -413,7 +413,7 @@ if [ X${kerberos_slave} = X"YES" ]; then
/usr/libexec/kpropd -i & /usr/libexec/kpropd -i &
fi fi
. /etc/rc.local
[ -f /etc/rc.local ] && . /etc/rc.local
date date


Loading…
Cancel
Save