home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 15 / hacker15 / 15_H4CK3R#15.ISO / linux_security / engarde / ENGARDE_COMMUNITY_FEINT.ISO / bin / restore-config < prev    next >
Encoding:
Text File  |  2002-05-30  |  254 b   |  17 lines

  1. #! /bin/sh
  2.  
  3. if [ -z "$1" ]
  4. then
  5.     echo -n 'Enter floppy device [/dev/fd0]: '
  6.     read FLOPPY
  7.     if [ -z "$FLOPPY" ]; then FLOPPY=/dev/fd0; fi
  8. fi
  9.  
  10. if [ ! -b $FLOPPY ]
  11. then
  12.     echo $FLOPPY is not a block device.
  13.     exit 1
  14. fi
  15.  
  16. cd / && tar xvfp $FLOPPY
  17.