Subversion Repositories livecd

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 beyerle@PS 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
if [ -a ./liblinuxlive ]; then
15
   . ./liblinuxlive
16
else
17
   . /usr/lib/liblinuxlive || exit 1
18
fi
19
 
20
TMPDIR=/tmp/mo2dir$$
21
 
22
mkdir -p $TMPDIR
23
mount_module "$1" "$TMPDIR"
24
cp -R --preserve "$TMPDIR"/* "$2"
25
umount "$TMPDIR"
26
rmdir "$TMPDIR"