Rev 8 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
#!/bin/bash# install all scripts from /tools to /usr/sbin and /usr/lib# so the user is able to use all these commands while running his/her Live Linux## this script is automatically called by runme.sh## Author: does it worth for such a short script ... hm... ok, Tomas M.## changes by Urs Beyerle: do not overwrite own mksquashfs and unionctl#ROOT=$1mkdir -p $ROOT/usr/sbinmkdir -p $ROOT/usr/lib#ls -aA1b ./tools | egrep -v "^lib" | while read FILE; do cp ./tools/$FILE $ROOT/usr/sbin; done#ls -aA1b ./tools | egrep "^lib" | while read FILE; do cp ./tools/$FILE $ROOT/usr/lib; donescripts="dir2mo editiso img2mo mo2dir tgz2mo uselivemod"for FILE in $scripts; do cp ./tools/$FILE $ROOT/usr/sbin; donelibs="liblinuxlive"for FILE in $libs; do cp ./tools/$FILE $ROOT/usr/lib; done[ ! -e /usr/sbin/unionctl ] && cp unionctl $ROOT/usr/sbin[ ! -e /usr/bin/mksquashfs ] && cp /mksquashfs $ROOT/usr/sbinecho "Linux Live scripts were installed successfuly to $1/"