mirror of https://github.com/CIRCL/Circlean
bunch of small fixes
parent
fdba081e15
commit
dcdbfb5401
|
@ -13,3 +13,11 @@ cp deb/*.deb ${CHROOT_PATH}/
|
||||||
# prepare fs archive
|
# prepare fs archive
|
||||||
tar -cvpzf backup.tar.gz -C fs/ .
|
tar -cvpzf backup.tar.gz -C fs/ .
|
||||||
tar -xzfv backup.tar.gz -C ${CHROOT_PATH}/
|
tar -xzfv backup.tar.gz -C ${CHROOT_PATH}/
|
||||||
|
|
||||||
|
sudo dd bs=4M if=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
|
||||||
|
# if you run rasp-config at least once, you will see the script running in case
|
||||||
|
# you have a screen connected.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,8 @@ fi
|
||||||
|
|
||||||
if [ -e /dev/sda ]; then
|
if [ -e /dev/sda ]; then
|
||||||
if [ -e /dev/sdb ]; then
|
if [ -e /dev/sdb ]; then
|
||||||
/opt/groomer/init.sh
|
cd /opt/groomer
|
||||||
|
./init.sh
|
||||||
/sbin/shutdown -h now
|
/sbin/shutdown -h now
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -12,7 +12,7 @@ fi
|
||||||
|
|
||||||
clean(){
|
clean(){
|
||||||
echo Done, cleaning.
|
echo Done, cleaning.
|
||||||
mount -o remount,rw /
|
#mount -o remount,rw /
|
||||||
${SYNC}
|
${SYNC}
|
||||||
# shutdown -h now
|
# shutdown -h now
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,9 @@ clean(){
|
||||||
trap clean EXIT TERM INT
|
trap clean EXIT TERM INT
|
||||||
|
|
||||||
# Remount the root filesystem in RO mode
|
# Remount the root filesystem in RO mode
|
||||||
mount -o remount,ro /
|
#mount -o remount,ro /
|
||||||
|
|
||||||
|
chown -R kitten:kitten /home/${USERNAME}/
|
||||||
|
|
||||||
su ${USERNAME} -c ./groomer.sh
|
su ${USERNAME} -c ./groomer.sh
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ if [ "$(id -u)" != "0" ]; then
|
||||||
echo "This script must be run as root" 1>&2
|
echo "This script must be run as root" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
ls /usr/bin/qemu*arm* > /dev/null 2>&1
|
ls /usr/bin/qemu*arm*
|
||||||
if [ ! -e ${?} ]; then
|
if [ -z $? ]; then
|
||||||
echo "You need qemu user static binaries." 1>&2
|
echo "You need qemu user static binaries." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue