Subversion Repositories livecd

Rev

Rev 104 | Go to most recent revision | Details | Compare with Previous | 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
 
104 beyerle@PS 20
scripts="dir2mo editiso img2mo mo2dir tgz2mo uselivemod.notworking"
1 beyerle@PS 21
for FILE in $scripts; do cp ./tools/$FILE $ROOT/usr/sbin; done
22
 
23
libs="liblinuxlive"
69 beyerle@PS 24
for FILE in $libs; do cp ./initrd/$FILE $ROOT/usr/lib; done
1 beyerle@PS 25
 
100 beyerle@PS 26
# [ ! -e /usr/sbin/unionctl ] && cp unionctl $ROOT/usr/sbin
27
# [ ! $( which mksquashfs 2>/dev/null ) ] && cp mksquashfs $ROOT/usr/sbin/
1 beyerle@PS 28
 
121 beyerle@PS 29
echo "Linux Live scripts were installed successfully to $1/"