home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 278.lha / Password_v1.21p / password.install < prev    next >
Text File  |  1989-08-08  |  3KB  |  67 lines

  1.  
  2. ; password install                                          07/30/89
  3.  
  4. echo "*n*n  PASSWORD INSTALLATION SCRIPT FOR DF0: (not recommended for hard-disks)*n*n"
  5. echo "  This script will install the password program and all supporting"
  6. echo "  files to your system disk.  Your startup-sequence and startupII"
  7. echo "  scripts will be changed along with your dir command as described in"
  8. echo "  the password program documentation.*n"
  9. echo "  It is recommended that you backup all files before proceeding.*n"
  10. echo "  All files included with the password program must now be in the"
  11. echo "  current directory.*n"
  12. echo "  You must have about 50 blocks of free disk space to install password."
  13. info df0:
  14. echo "*n*n          This script will modify your system disk,"
  15.  ask "              do you want to proceed? [ y N ]: "
  16. if warn
  17.    echo "*n*n  Verifying file existance and locations: " NOLINE
  18.    if not exists c:
  19.       echo "*n*n  ERROR:  Can't find the c: directory.*n*n"
  20.       quit
  21.       endif
  22.    if not exists s:
  23.       echo "*n*n  ERROR:  Can't find the s: directory.*n*n"
  24.       quit
  25.       endif
  26.    if not exists password
  27.       echo "*n*n  ERROR:  Can't find the password program.*n*n"
  28.       quit
  29.       endif
  30.    if not exists startup-sequence
  31.       echo "*n*n  ERROR:  Can't find the startup-sequence script.*n*n"
  32.       quit
  33.       endif
  34.    if not exists startupii
  35.       echo "*n*n  ERROR:  Can't find the startupII script.*n*n"
  36.       quit
  37.       endif
  38.    if not exists c:dir
  39.       echo "*n*n  ERROR:  Can't find the c:dir program.*n*n"
  40.       quit
  41.       endif
  42.    if not exists loop
  43.       echo "*n*n  ERROR:  Can't find the loop program.*n*n"
  44.       quit
  45.       endif
  46.    if not exists s:shell-startup
  47.       echo "*n*n  ERROR:  Can't find the s:shell-startup script.*n*n"
  48.       quit
  49.       endif
  50.    echo "*n*n  All file/locations located, copying files: " NOLINE
  51.    copy password c:
  52.    copy startup-sequence s:
  53.    copy startupii s:
  54.    copy shell-startup s:
  55.    rename c:dir c:dirx
  56.    copy loop c:dir
  57.    echo "*n*n*n  Your boot disk has now been prepared for password protection,"
  58.    echo "  you may need to modify the startup-sequence and startupII for"
  59.    echo "  your particular application.*n*n*n"
  60.    echo "  It is recommended that you execute a dir command at the prompt"
  61.    echo "  as an example if dir is ever executed again without the disk"
  62.    echo "  being booted using the password program.*n"
  63.    echo "  You must reboot once the dir program is executed......*n*n  "
  64.    else
  65.    echo "*n*n*n  Password files not copied, due to user request.*n*n"
  66.    endif
  67.