home *** CD-ROM | disk | FTP | other *** search
/ host-198-236-40-254.wlwv.k12.or.us / host-198-236-40-254.wlwv.k12.or.us.tar / host-198-236-40-254.wlwv.k12.or.us / tsu / BareMetalInstall.iso / tools / dir2mo < prev    next >
Text File  |  2012-12-18  |  492b  |  21 lines

  1. #!/bin/bash
  2. # convert directory tree into .MO compressed file
  3. # which can be used as a LiveCD module
  4. #
  5. # Author: Tomas M. <http://www.linux-live.org>
  6. #
  7.  
  8. PATH=.:$(dirname $0):/usr/lib:$PATH
  9. . liblinuxlive || exit 1
  10.  
  11. if [ ! -d "$1" -o "$2" = "" ]; then
  12.    echo
  13.    echo "Convert directory tree into .MO compressed module"
  14.    echo "usage: $0 source_directory output_file.mo"
  15.    exit 1
  16. fi
  17.  
  18. rm -f "$2"
  19. create_module "$1" "$2"
  20. if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi
  21.