diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-02-15 02:22:24 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-02-15 02:22:24 +0000 |
| commit | a83aea7558b823aa62aa9ee4fd4dda31c3fe3db4 (patch) | |
| tree | 88baa409c7ccaa3afb818dacda8c6f01522b6861 | |
| parent | 1ce137be821b4779dc396b38f3ff102008015f8a (diff) | |
Notes
| -rwxr-xr-x | tools/tools/upgrade/doupgrade.sh | 6 |
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 |
