summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-03-21 16:45:54 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-03-21 16:45:54 +0000
commit2d4a247afecf46802a907ecf9091f0d160e0651f (patch)
tree53183bec3110008aab299a0f9d9891ea76605e47 /distrib/miniroot/install.sub
parent1e2ed620869ddc36d69e993954f72c69512048f0 (diff)
Bourne to Korn shell
OK krw@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 390e5fd80cd..509f678d3d5 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.819 2015/03/17 15:21:02 rpe Exp $
+# $OpenBSD: install.sub,v 1.820 2015/03/21 16:45:53 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# All rights reserved.
@@ -69,7 +69,7 @@ while getopts "af:" opt; do
esac
done
shift $((OPTIND-1))
-[ $# = 0 ] || usage
+(($# == 0)) || usage
# Include machine-dependent functions and definitions.
#
@@ -1114,7 +1114,7 @@ enable_network() {
# Copy any network configuration files. N.B.: hosts already copied.
for _f in dhclient.conf resolv.conf resolv.conf.tail; do
- if [ -f /mnt/etc/$_f ]; then
+ if [[ -f /mnt/etc/$_f ]]; then
cp /mnt/etc/$_f /etc/$_f
fi
done