|
1
by Robert Nelson
initial import of my image building script |
1 |
#!/bin/bash
|
2 |
set -e
|
|
3 |
||
|
47
by Robert Nelson
uboot makes more sense then mmc, got from irc |
4 |
mkdir -p /boot/uboot |
|
40
by Robert Nelson
mount /dev/mmcblk0p1 to /boot/mmc, first stage for updating uInitrds |
5 |
|
6 |
echo "/dev/mmcblk0p2 / auto errors=remount-ro 0 1" >> /etc/fstab |
|
|
47
by Robert Nelson
uboot makes more sense then mmc, got from irc |
7 |
echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /etc/fstab |
|
1
by Robert Nelson
initial import of my image building script |
8 |
|
|
48
by Robert Nelson
remove mtd partion and implement a kill flash-kernel |
9 |
cat > /etc/flash-kernel.conf <<FK
|
10 |
#!/bin/sh
|
|
|
117
by Robert Nelson
more upstream compatiable |
11 |
UBOOT_PART=/dev/mmcblk0p1
|
12 |
||
|
129
by Robert Nelson
update /etc/flash-kernel.conf script for upstream change in maverick |
13 |
echo "flash-kernel stopped by: /etc/flash-kernel.conf"
|
|
117
by Robert Nelson
more upstream compatiable |
14 |
echo "You are currently running an image built by rcn-ee.net running an rcn-ee"
|
15 |
echo "kernel, to use Ubuntu's Kernel remove the next line"
|
|
|
129
by Robert Nelson
update /etc/flash-kernel.conf script for upstream change in maverick |
16 |
USE_RCN_EE_KERNEL=1
|
17 |
||
18 |
if [ "\$USE_RCN_EE_KERNEL" ] ; then
|
|
19 |
||
20 |
DIST=\$(lsb_release -cs)
|
|
21 |
||
|
130
by Robert Nelson
missed one |
22 |
case "\$DIST" in
|
|
129
by Robert Nelson
update /etc/flash-kernel.conf script for upstream change in maverick |
23 |
lucid)
|
24 |
exit 0
|
|
25 |
;;
|
|
26 |
maverick)
|
|
27 |
FLASH_KERNEL_SKIP=yes
|
|
28 |
;;
|
|
29 |
esac
|
|
30 |
||
31 |
fi
|
|
|
48
by Robert Nelson
remove mtd partion and implement a kill flash-kernel |
32 |
|
33 |
FK
|
|
|
1
by Robert Nelson
initial import of my image building script |
34 |
|
|
71
by Robert Nelson
use arm chroot |
35 |
rm -f /tmp/*.deb |
36 |
rm -rfd /usr/src/linux-headers* |
|
37 |