Small fixes

This commit is contained in:
zador-blood-stained
2017-08-06 15:33:15 +03:00
parent 549d09b043
commit f0e47d15a6
2 changed files with 4 additions and 5 deletions

View File

@@ -127,11 +127,10 @@ install_common()
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/$RELEASE/${CHOSEN_ROOTFS}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
# freeze armbian packages
if [[ $BSPFREEZE == "yes" ]]; then
display_alert "Freeze armbian packages" "$BOARD" "info"
if [[ "$BRANCH" != "default" ]]; then MINIBRANCH="-"$BRANCH; fi
if [[ $BSPFREEZE == yes ]]; then
display_alert "Freezing Armbian packages" "$BOARD" "info"
chroot $SDCARD /bin/bash -c "apt-mark hold ${CHOSEN_KERNEL} ${CHOSEN_KERNEL/image/headers} \
linux-u-boot-${BOARD}-${BRANCH} linux-dtb${MINIBRANCH}-${LINUXFAMILY}" >> $DEST/debug/install.log 2>&1
linux-u-boot-${BOARD}-${BRANCH} ${CHOSEN_KERNEL/image/dtb}" >> $DEST/debug/install.log 2>&1
fi
# copy boot splash images

View File

@@ -51,7 +51,7 @@ mkdir -p $DEST/debug
rm -f $DEST/debug/*.log > /dev/null 2>&1
date +"%d_%m_%Y-%H_%M_%S" > $DEST/debug/timestamp
# delete compressed logs older than 7 days
(cd $DEST/debug && find . -name '*.tgz' -atime +7 -delete) > /dev/null
(cd $DEST/debug && find . -name '*.tgz' -mtime +7 -delete) > /dev/null
# Script parameters handling
for i in "$@"; do