summaryrefslogtreecommitdiff
path: root/meta/packages/maemo
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-25 14:08:53 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-25 14:08:53 +0000
commita7ed27d541a5d2c5a8656465a2b1dac2e131b1c5 (patch)
tree28f3a672cd35116bbaba314aa93f35dd534c7315 /meta/packages/maemo
parent7be7ded669f00fe38c0d6fa9244869e2a7b6cc92 (diff)
downloadopenembedded-core-a7ed27d541a5d2c5a8656465a2b1dac2e131b1c5.tar.gz
openembedded-core-a7ed27d541a5d2c5a8656465a2b1dac2e131b1c5.tar.bz2
openembedded-core-a7ed27d541a5d2c5a8656465a2b1dac2e131b1c5.zip
nokia770-init: Cleanup postinst to allow it to work offline
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3231 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/maemo')
-rw-r--r--meta/packages/maemo/nokia770-init_1.0.bb25
1 files changed, 10 insertions, 15 deletions
diff --git a/meta/packages/maemo/nokia770-init_1.0.bb b/meta/packages/maemo/nokia770-init_1.0.bb
index 0079940945..22c9c50b91 100644
--- a/meta/packages/maemo/nokia770-init_1.0.bb
+++ b/meta/packages/maemo/nokia770-init_1.0.bb
@@ -24,20 +24,15 @@ do_install () {
pkg_postinst () {
#!/bin/sh
-# can't do adduser stuff offline
-if [ "x$D" != "x" ]; then
- exit 1
-fi
-
# set up some links to firmware and modules in initrd
- mkdir -p /lib/firmware
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3825.arm /lib/firmware/3825.arm
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3826.arm /lib/firmware/3826.arm
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/bc4fw.bin /lib/firmware/bc4fw.bin
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/brf6150fw.bin /lib/firmware/brf6150fw.bin
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3825.arm /lib/firmware/mtlm3825.arm
- ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3826.arm /lib/firmware/mtlm3826.arm
-
-# rm -rf /lib/modules
-# ln -s /mnt/initfs/lib/modules /lib/modules
+ mkdir -p $D/lib/firmware
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3825.arm $D/lib/firmware/3825.arm
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3826.arm $D/lib/firmware/3826.arm
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/bc4fw.bin $D/lib/firmware/bc4fw.bin
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/brf6150fw.bin $D/lib/firmware/brf6150fw.bin
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3825.arm $D/lib/firmware/mtlm3825.arm
+ ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3826.arm $D/lib/firmware/mtlm3826.arm
+
+# rm -rf $D/lib/modules
+# ln -s /mnt/initfs/lib/modules $D/lib/modules
}