move the flash-kernel.conf script into mk_mmc.sh

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/10/merge
Robert Nelson 12 years ago
parent bae8be13d6
commit 3ba3d4e2cf

@ -999,6 +999,27 @@ function initrd_cleanup {
rm -rf ${TEMPDIR}/initrd-tree/lib/firmware/*-versatile/ || true
}
function flash_kernel {
cat > ${TEMPDIR}/initrd-tree/etc/flash-kernel.conf <<-__EOF__
#!/bin/sh -e
UBOOT_PART=/dev/mmcblk0p1
echo "flash-kernel stopped by: /etc/flash-kernel.conf"
USE_CUSTOM_KERNEL=1
if [ "\${USE_CUSTOM_KERNEL}" ] ; then
DIST=\$(lsb_release -cs)
case "\${DIST}" in
maverick|natty|oneiric|precise|quantal)
FLASH_KERNEL_SKIP=yes
;;
esac
fi
__EOF__
}
function finish_installing_device {
cat > ${TEMPDIR}/initrd-tree/usr/lib/finish-install.d/08rcn-ee-finish-installing-device <<-__EOF__
#!/bin/sh -e
@ -1038,6 +1059,7 @@ function initrd_preseed_settings {
case "${DIST}" in
maverick|natty|oneiric|precise|quantal)
cp -v "${DIR}/scripts/ubuntu-finish.sh" ${TEMPDIR}/initrd-tree/etc/finish-install.sh
flash_kernel
;;
squeeze|wheezy)
cp -v "${DIR}/scripts/debian-finish.sh" ${TEMPDIR}/initrd-tree/etc/finish-install.sh

@ -113,30 +113,6 @@ if [ "x${smsc95xx_mem}" != "x" ] ; then
echo "vm.min_free_kbytes = ${smsc95xx_mem}" >> /etc/sysctl.conf
fi
cat > /etc/flash-kernel.conf <<-__EOF__
#!/bin/sh
UBOOT_PART=/dev/mmcblk0p1
echo "flash-kernel stopped by: /etc/flash-kernel.conf"
echo "You are currently running an image built by rcn-ee.net running an rcn-ee"
echo "kernel, to use Ubuntu's Kernel remove the next line"
USE_RCN_EE_KERNEL=1
if [ "\${USE_RCN_EE_KERNEL}" ] ; then
DIST=\$(lsb_release -cs)
case "\${DIST}" in
lucid)
exit 0
;;
maverick|natty|oneiric|precise|quantal)
FLASH_KERNEL_SKIP=yes
;;
esac
fi
__EOF__
cat > /etc/init/board_tweaks.conf <<-__EOF__
start on runlevel 2

Loading…
Cancel
Save