summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralm <alm@FreeBSD.org>1993-09-09 14:04:20 +0000
committeralm <alm@FreeBSD.org>1993-09-09 14:04:20 +0000
commit3e808869c39aa7fea2918dee242b6429d2b659f1 (patch)
tree4ffff0e6b7ca6abf81a885b8ad4aa52d4d8a715b
parent19fe3ad59ed1dda9294a7dcd597b64ccca12269e (diff)
downloadFreeBSD-src-3e808869c39aa7fea2918dee242b6429d2b659f1.zip
FreeBSD-src-3e808869c39aa7fea2918dee242b6429d2b659f1.tar.gz
Combined some conditional statements now that `test' works correctly.
-rwxr-xr-xetc/etc.i386/inst1.install22
1 files changed, 8 insertions, 14 deletions
diff --git a/etc/etc.i386/inst1.install b/etc/etc.i386/inst1.install
index 62e5dad..fe3377d 100755
--- a/etc/etc.i386/inst1.install
+++ b/etc/etc.i386/inst1.install
@@ -4,6 +4,8 @@
# Currently, no method for checking to see if the designated disk type is
# already in /etc/disktab. You can edit it out of the file after installation.
#
+PATH=/sbin:/bin:/usr/bin:/usr/sbin:.
+
OPSYSTEM=FreeBSD
OPSYSID=165
ROOTMIN=7
@@ -83,20 +85,12 @@ while read data; do
end_cyl=`expr "$data" : '[ ]*end[^0-9]*\([0-9]*\)'`
if [ "$part_id" ]; then
part_cnt=`expr $part_cnt + 1`
- elif [ "$beg_cyl" ]; then
- if [ $beg_cyl -gt $cyls_per_disk ]; then
- no_part_table=1
- sysid_cnt=0
- have_opsys_part=0
- unused_last_part=`expr $part_cnt - 1`
- fi
- elif [ "$end_cyl" ]; then
- if [ $end_cyl -gt $cyls_per_disk ]; then
- no_part_table=1
- sysid_cnt=0
- have_opsys_part=0
- unused_last_part=`expr $part_cnt - 1`
- fi
+ elif [ "${beg_cyl}" -gt "${cyls_per_disk}" -o \
+ "${end_cyl}" -gt "${cyls_per_disk}" ]; then
+ no_part_table=1
+ sysid_cnt=0
+ have_opsys_part=0
+ unused_last_part=`expr $part_cnt - 1`
fi
fi
done <fdisk.out
OpenPOWER on IntegriCloud