Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2013-10-27 23:15:49 +0100
committerPetter Reinholdtsen <pere@hungry.com>2013-10-27 23:15:49 +0100
commitfa567bf7d6e32df14fc65bed04f3a472d6e1f9e1 (patch)
treec798e301d1a8c08a46aa60387cb1e1cf0a1a0f36 /bin/freedombox-customize
parent9f056963496af70ca2de931d43f2865eecbbb594 (diff)
Fix dreamup kernel and init setup.
Diffstat (limited to 'bin/freedombox-customize')
-rwxr-xr-xbin/freedombox-customize7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index abb51fa..90bdba1 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -91,7 +91,7 @@ if [ "$MACHINE" = dreamplug ] ; then
# installed in a chroot.
chroot $rootdir apt-get install -y flash-kernel
-cat <<EOF > $rootdir/usr/lib/freedombox/setup.d/95_dreamplug-kernel
+cat <<'EOF' > $rootdir/usr/lib/freedombox/setup.d/95_dreamplug-kernel
#!/bin/sh
# process installed kernel to create uImage, uInitrd, dtb
# using flash-kernel would be a good approach, except it fails in the
@@ -105,6 +105,11 @@ cat <<EOF > $rootdir/usr/lib/freedombox/setup.d/95_dreamplug-kernel
# on the kernel command line is completely ignored! repack the initrd
# to remove this evil...
+kernelVersion=$(ls /usr/lib/*/kirkwood-dreamplug.dtb | cut -d/ -f4)
+version=$(echo $kernelVersion | sed 's/linux-image-\(.*\)/\1/')
+initRd=initrd.img-$version
+vmlinuz=vmlinuz-$version
+
mkdir /tmp/initrd-repack
(cd /tmp/initrd-repack ; \