update helper scripts

pull/10/head
Raphaël Vinot 2013-05-16 11:18:05 +02:00
parent 08d7504114
commit 66fd8c8ebc
3 changed files with 10 additions and 8 deletions

View File

@ -8,13 +8,13 @@ if [ "$(id -u)" != "0" ]; then
fi
# copy deb
cp deb/*.deb ${CHROOT_PATH}/
#cp deb/*.deb ${CHROOT_PATH}/
# prepare fs archive
tar -cvpzf backup.tar.gz -C fs/ .
tar -xzfv backup.tar.gz -C ${CHROOT_PATH}/
tar -xzf backup.tar.gz -C ${CHROOT_PATH}/
sudo dd bs=4M if=FINAL_2013-02-09-wheezy-raspbian.img of=/dev/sdd
#sudo dd bs=4M if=NEW_FINAL_2013-02-09-wheezy-raspbian.img of=/dev/sdd
# /!\ always try to mount the root partition on the SD, it is usually brocken.
# if it is, use fdisk to remove the second partition and recreate it

View File

@ -7,6 +7,6 @@ dpkg-reconfigure locales
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get install libreoffice libfontforge1 p7zip-full
dpkg -i libpoppler28_0.20.5-3_armhf.deb pdf2htmlex_0.8-1~git201303011406r3bc73-0ubuntu1_armhf.deb
apt-get install libreoffice p7zip-full libfontforge1
dpkg -i libpoppler28*.deb pdf2htmlex*.deb

View File

@ -14,8 +14,10 @@ set -e
set -x
# If you use a partition...
PARTITION_ROOTFS='/dev/mmcblk0p2'
PARTITION_BOOT='/dev/mmcblk0p1'
#PARTITION_ROOTFS='/dev/mmcblk0p2'
#PARTITION_BOOT='/dev/mmcblk0p1'
PARTITION_ROOTFS='/dev/sdd2'
PARTITION_BOOT='/dev/sdd1'
# If you use the img
##### Debian
IMAGE='2013-02-09-wheezy-raspbian.img'
@ -54,7 +56,7 @@ export QEMU_CPU=arm1176
mkdir -p ${CHROOT_PATH}
if [ -a ${IMAGE} ]; then
if [ ! -z ${IMAGE} ]; then
mount -o loop,offset=${OFFSET_ROOTFS} ${IMAGE} ${CHROOT_PATH}
mount -o loop,offset=${OFFSET_BOOT} ${IMAGE} ${CHROOT_PATH}/boot
elif [ -a ${PARTITION_ROOTFS} ]; then