diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-03-17 03:04:48 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-03-17 03:04:48 +0000 |
commit | ecde7c7719720200f43ff28d9a5a4f03b7ad33ff (patch) | |
tree | c1e42fc3011ca80d80916914f76a161d6196f1fc | |
parent | 1dcd6be8c6cc918288d483c117271fc3db53b62a (diff) |
Examine correct fields in mount(8) output to determine if root
is nfs mounted, i.e. install is running on a diskless machine.
ok millert@
-rw-r--r-- | distrib/miniroot/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 49d6a1480a8..cc46ba65f1f 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.84 2002/03/04 13:59:52 krw Exp $ +# $OpenBSD: install.sh,v 1.85 2002/03/17 03:04:47 krw Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback @@ -329,7 +329,7 @@ mount_fs "-o async" mount | while read line; do set -- $line - if [ "$2" = "/" -a "$3" = "nfs" ]; then + if [ "$3" = "/" -a "$5" = "nfs" ]; then echo "You appear to be running diskless." echo -n "Are the install sets on one of your currently mounted filesystems? [n] " getresp "n" |