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 / mo2dir < prev    next >
Text File  |  2012-12-18  |  512b  |  21 lines

  1. #!/bin/bash
  2. # convert .MO compressed file back into directory tree
  3. #
  4. # Author: Tomas M. <http://www.linux-live.org>
  5. #
  6.  
  7. if [ ! -d "$2" ]; then
  8.    echo 
  9.    echo "Convert .MO compressed module back into directory tree"
  10.    echo "usage: $0 source_file.mo existing_output_directory"
  11.    exit 1
  12. fi
  13.  
  14. PATH=.:$(dirname $0):/usr/lib:$PATH
  15. . liblinuxlive || exit 1
  16.  
  17. # we need modified unsquashfs which supports -f
  18. # I made the modifications and sent patch to squashfs author already
  19.  
  20. unsquashfs -f -dest "$2" "$1" >/dev/null
  21.