Changeset aed6c72


Ignore:
Timestamp:
06/09/2006 09:07:29 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
e2ef100
Parents:
e314f7e
Message:

a little more bulletproofing for the <make restart> code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    re314f7e raed6c72  
    461461
    462462restart_code:
    463         @echo "This feature is experimental, BUGS may exist"
     463        @echo ">>> This feature is experimental, BUGS may exist"
     464
     465        @if [ ! -L /tools ]; then \\
     466          echo -e "\\nERROR::\\n /tools is NOT a symlink.. /tools must point to \$(MOUNT_PT)/tools\\n" && false;\\
     467        fi;
     468
     469        @if [ ! -e /tools ]; then \\
     470          echo -e "\\nERROR::\\nThe target /tools points to does not exist.\\nVerify the target.. \$(MOUNT_PT)/tools\\n" && false;\\
     471        fi;
     472
    464473        @if ! stat -c %N /tools | grep "\$(MOUNT_PT)/tools" >/dev/null ; then \\
    465474          echo -e "\\nERROR::\\nThe symlink \\"/tools\\" does not point to \\"\$(MOUNT_PT)/tools\\".\\nCorrect the problem and rerun\\n" && false;\\
    466475        fi;
     476
    467477        @if [ -f ???-kernfs ]; then \\
    468478          mkdir -pv \$(MOUNT_PT)/{dev,proc,sys};\\
Note: See TracChangeset for help on using the changeset viewer.