Subversion Repositories livecd

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 beyerle@PS 1
#!/bin/bash
2
# install all scripts from /tools to /usr/sbin and /usr/lib
3
# so the user is able to use all these commands while running his/her Live Linux
4
#
5
# this script is automatically called by runme.sh
6
#
7
# Author: does it worth for such a short script ... hm... ok, Tomas M.
8
#
9
# changes by Urs Beyerle: do not overwrite own mksquashfs and unionctl
10
#
11
 
12
ROOT=$1
13
 
14
mkdir -p $ROOT/usr/sbin
15
mkdir -p $ROOT/usr/lib
16
 
17
#ls -aA1b ./tools | egrep -v "^lib" | while read FILE; do cp ./tools/$FILE $ROOT/usr/sbin; done
18
#ls -aA1b ./tools | egrep "^lib" | while read FILE; do cp ./tools/$FILE $ROOT/usr/lib; done
19
 
20
scripts="dir2mo editiso img2mo mo2dir tgz2mo uselivemod"
21
for FILE in $scripts; do cp ./tools/$FILE $ROOT/usr/sbin; done
22
 
23
libs="liblinuxlive"
24
for FILE in $libs; do cp ./tools/$FILE $ROOT/usr/lib; done
25
 
26
[ ! -e /usr/sbin/unionctl ] && cp unionctl $ROOT/usr/sbin
9 beyerle@PS 27
[ ! -e /usr/bin/mksquashfs ] && cp /mksquashfs $ROOT/usr/sbin
1 beyerle@PS 28
 
29
echo "Linux Live scripts were installed successfuly to $1/"