Subversion Repositories livecd

Rev

Rev 8 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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