diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-28 13:28:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-28 13:28:37 +0000 |
commit | 75f7e58d1b05dca53cd97a08b92b92508dd67fca (patch) | |
tree | 17990dc88d7bce2a9c9c3c4335424b4eae79a9b1 /distrib/miniroot/install.sub | |
parent | 484fc72b75b573f8273dff8bce47fc01a2799669 (diff) |
toast the obviously untested nfs changes
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index d3867186022..c6a9fbe2bd0 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.98 1998/09/28 12:34:06 deraadt Exp $ +# $OpenBSD: install.sub,v 1.99 1998/09/28 13:28:36 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -129,7 +129,7 @@ isin() { if [ "$_a" = "$1" ]; then return 0; fi shift done - return + return 1 } addel() { @@ -363,12 +363,14 @@ Now you can select another disk to initialize. (Do not re-select a disk you have already entered information for). Available disks are: __getanotherdisk_1 - _DKDEVS=`md_get_diskdevs; echo nfs` + _DKDEVS=`md_get_diskdevs` echo "$_DKDEVS" echo "" echo -n "Which one? [done] " getresp "" - if [ "X${resp}" = "X" -o "X${resp}" = "Xdone" ]; then + if [ "X${resp}" = "X" ]; then + DISK=done + elif [ "X${resp}" = "Xdone" ]; then DISK=done elif isin $resp $_DKDEVS ; then DISK="$resp" @@ -390,7 +392,7 @@ Available disks are: __getrootdisk_1 local _defdsk; - _DKDEVS=`md_get_diskdevs; echo nfs` + _DKDEVS=`md_get_diskdevs` _defdsk=`echo $_DKDEVS | cutlast` if [ "${_defdsk}" != "${_DKDEVS}" ]; then _defdsk="" @@ -1599,7 +1601,7 @@ mkdir /mnt2 > /dev/null 2>&1 if ! mount_nfs $_nfs_tcp ${_nfs_server_ip}:${_nfs_server_path} \ /mnt2 ; then echo "Cannot mount NFS server. Aborting." - return 1 + return fi # Get the directory where the file lives |