wok annotate slitaz-loram-cdrom/stuff/loram.extract @ rev 1943
ndiswrapper, change category.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 28 15:10:04 2008 +0100 (2008-12-28) |
parents | 0ae8330553fc |
children | 27c64029013c |
rev | line source |
---|---|
pascal@370 | 1 # remove link to cdrom |
pascal@370 | 2 [ -d cdrom ] && rmdir cdrom |
pascal@370 | 3 if [ -L usr ]; then |
pascal@370 | 4 rm usr |
pascal@370 | 5 cp -a $1/usr . |
pascal@370 | 6 fi |
pascal@370 | 7 packedfs="$1/usr.cromfs" |
pascal@370 | 8 if [ -f $packedfs ]; then |
pascal@370 | 9 rmdir usr |
pascal@370 | 10 rm -f bin/unmkcromfs |
pascal@370 | 11 cp -a $1/unmkcromfs bin/unmkcromfs |
pascal@370 | 12 bin/unmkcromfs $packedfs usr |
pascal@744 | 13 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs |
pascal@370 | 14 rm -f bin/cromfs-driver |
pascal@370 | 15 cp -a $1/cromfs-driver bin/cromfs-driver |
pascal@370 | 16 fi |
pascal@370 | 17 packedfs="$1/usr.sqfs" |
pascal@370 | 18 if [ -f $packedfs ]; then |
pascal@370 | 19 rmdir usr |
pascal@370 | 20 sbin/unsquashfs -d usr $packedfs |
pascal@744 | 21 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs |
pascal@370 | 22 fi |
pascal@370 | 23 if [ -d usr/.moved ]; then |
pascal@370 | 24 ( cd usr/.moved ; find * -print ) | \ |
pascal@370 | 25 while read file; do |
pascal@370 | 26 [ -L "$file" ] || continue |
pascal@370 | 27 rm -f "$file" |
pascal@370 | 28 mv "usr/.moved/$file" "$file" |
pascal@370 | 29 done |
pascal@370 | 30 rm -rf usr/.moved |
pascal@370 | 31 fi |
pascal@954 | 32 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do |
pascal@954 | 33 [ -e $ii ] && mv $ii* usr/lib/ |
pascal@954 | 34 done |
pascal@780 | 35 if [ -L root ]; then |
pascal@780 | 36 rm -f etc/keymap.conf etc/locale.conf etc/resolv.conf etc/TZ etc/motd |
pascal@780 | 37 [ -d var/log.ORG ] && mv -f var/log.ORG var/log |
pascal@780 | 38 [ -d var/run.ORG ] && mv -f var/run.ORG var/run |
pascal@780 | 39 [ -d var/lock.ORG ] && mv -f var/lock.ORG var/lock |
pascal@780 | 40 [ -d root.ORG ] && mv -f root.ORG root |
pascal@780 | 41 rm -f media/cdrom |
pascal@780 | 42 rmdir mnt/target |
pascal@780 | 43 sed -i 's/CLEAN_UP_SYSTEM="no"/CLEAN_UP_SYSTEM="yes"/' etc/rcS.conf |
pascal@780 | 44 sed -i 's/RUN_DAEMONS="/RUN_DAEMONS="slim /' etc/rcS.conf |
pascal@780 | 45 fi |
pascal@1620 | 46 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free; do |
pascal@1620 | 47 [ -e usr/$ii ] && rm -f $ii |
pascal@1620 | 48 done |