diff options
Diffstat (limited to 'tools')
-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 67a2f62..9fa73ec 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 |