We no longer assume the working directory. Instead, we assume the user is already in root.bin and go from there.

This commit is contained in:
ccurley 2005-10-29 16:22:57 +00:00
parent ac729d484a
commit 14c472b4a6
1 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@
# only option is -c, which forces bad block checking during formatting
# of the partitions.
# Time-stamp: <2003-04-24 10:03:07 ccurley first.stage>
# Time-stamp: <2005-09-01 07:35:16 root first.stage>
# Copyright 2002 through the last date of modification Charles Curley.
@ -28,6 +28,10 @@
# For more information contact the author, Charles Curley, at
# http://www.charlescurley.com/.
# 2005-08-07 We no longer assume the working directory. This is
# because the working directory will vary greatly according to which
# Linux disty you use and how you are doing your restoration.
export blockcheck=$1;
if [ "$blockcheck" != "-c" ] && [ -n "$blockcheck" ]
@ -37,8 +41,6 @@ then
exit 1;
fi
cd /mnt/root.bin # just in case we aren't already where we should be.
for drive in $( ls make.dev.* ); do
./$drive $blockcheck;
done
@ -62,4 +64,4 @@ done
./restore.metadata
# People who are really confident may comment this line in.
# reboot
# reboot