summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-02-15 02:23:41 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-02-15 02:23:41 +0000
commitd6c7c44f53a0092f1dea5321f466d92d51c9ebf7 (patch)
tree31c8df7adb6b5fc5ae81edd7892dd2c26ab6c6f8
parent09c349a0699397401eaff83771b2f76a0671a8d8 (diff)
Notes
-rwxr-xr-xtools/tools/upgrade/doupgrade.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/tools/upgrade/doupgrade.sh b/tools/tools/upgrade/doupgrade.sh
index 67a2f626a2fe..9fa73ec85245 100755
--- a/tools/tools/upgrade/doupgrade.sh
+++ b/tools/tools/upgrade/doupgrade.sh
@@ -38,11 +38,7 @@ pseudo-device splash \
/' -e 's/sd\([0-9]\)/da\1/' -e 's/st\([0-9]\)/sa\1/' < ${KERN}.bkup > ${KERN}
fi
- if [ -r /dev/wd0a ]; then
- ROOTDEV=wd0
- else
- ROOTDEV=sd0
- fi
+ ROOTDEV=`awk '$2~/\/$/{print substr($1, 6, 3)}' /etc/fstab`
echo -n "What is your boot device (e.g. wd0 or sd0)? [${ROOTDEV}] "
read answer
if [ -n "${answer}" ]; then