mk_mmc.sh: these can fail, protect them

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 10 years ago
parent e8b0b3ff4b
commit da3f31f3f2

@ -807,13 +807,14 @@ neuter_flash_kernel () {
apt-install linux-base initramfs-tools || true apt-install linux-base initramfs-tools || true
apt-install flash-kernel || true apt-install flash-kernel || true
rm /target/usr/share/flash-kernel/db/all.db rm /target/usr/share/flash-kernel/db/all.db || true
mkdir -p /target/usr/share/flash-kernel/db/ || true
cp /etc/all.db /target/usr/share/flash-kernel/db/rcn-ee.db cp /etc/all.db /target/usr/share/flash-kernel/db/rcn-ee.db
touch /target/usr/share/flash-kernel/rcn-ee.conf touch /target/usr/share/flash-kernel/rcn-ee.conf
rm /target/etc/initramfs/post-update.d/flash-kernel rm /target/etc/initramfs/post-update.d/flash-kernel || true
rm /target/etc/kernel/postinst.d/zz-flash-kernel rm /target/etc/kernel/postinst.d/zz-flash-kernel || true
rm /target/etc/kernel/postrm.d/zz-flash-kernel rm /target/etc/kernel/postrm.d/zz-flash-kernel || true
mkdir -p /target/etc/dpkg/dpkg.cfg.d/ || true mkdir -p /target/etc/dpkg/dpkg.cfg.d/ || true
echo "# neuter flash-kernel" > /target/etc/dpkg/dpkg.cfg.d/01_noflash_kernel echo "# neuter flash-kernel" > /target/etc/dpkg/dpkg.cfg.d/01_noflash_kernel

Loading…
Cancel
Save