wok diff slitaz-loram/stuff/loram.iso @ rev 7905
fix-bdep: pciutils
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Jan 09 14:35:06 2011 +0100 (2011-01-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slitaz-loram/stuff/loram.iso Sun Jan 09 14:35:06 2011 +0100 1.3 @@ -0,0 +1,8 @@ 1.4 +if [ -s $1/rootfs.gz2 ]; then 1.5 + local rem 1.6 + rem=$(( $(stat -c "%s" $1/boot/rootfs.gz) % 4 )) 1.7 + [ $rem -ne 0 ] && 1.8 + dd if=/dev/zero bs=1 count=$(( 4 - $rem )) >> $1/boot/rootfs.gz 1.9 + cat $1/rootfs.gz2 >> $1/boot/rootfs.gz 1.10 + rm -f $1/rootfs.gz2 1.11 +fi