summaryrefslogtreecommitdiff
path: root/packages/maemo
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2005-07-04 11:35:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-04 11:35:04 +0000
commit467caf022d294340d72a6825555f09ff4eb1b27d (patch)
tree70ace26565fd08bc8d24c51bad3a511427fb289a /packages/maemo
parent0c322b7f5aa3287c3f868141b0698d92792f1b3e (diff)
Update postinst task to create default user properly and link
to stuff located in initrd.
Diffstat (limited to 'packages/maemo')
-rw-r--r--packages/maemo/osso-core-config_200515.1.bb18
1 files changed, 13 insertions, 5 deletions
diff --git a/packages/maemo/osso-core-config_200515.1.bb b/packages/maemo/osso-core-config_200515.1.bb
index 1010e91e8a..e82e5f092d 100644
--- a/packages/maemo/osso-core-config_200515.1.bb
+++ b/packages/maemo/osso-core-config_200515.1.bb
@@ -1,6 +1,6 @@
-LICENSE = "unknown"
-MAINTAINER= "Florian Boor <florian@kernelconcepts.de"
-PR = "r4"
+LICENSE = "unknown"
+MAINTAINER = "Florian Boor <florian@kernelconcepts.de"
+PR = "r5"
DEPENDS = "base-passwd osso-af-startup"
RDEPENDS = "base-passwd osso-af-startup"
@@ -35,7 +35,15 @@ fi
MAEMOUSER=user
MAEMOHOME=/home/user
+addgroup "$MAEMOUSER"
mkdir -p $MAEMOHOME/MyDocs || true
-chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null || addgroup "$MAEMOUSER"
-adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER" || chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
+adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER"
+chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
+chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
+# set up some links to firmware and modules in initrd
+
+mkdir -p /lib/firmware
+ln -sf /mnt/initfs/lib/firmware/* /lib/firmware/
+rm -rf /lib/modules
+ln -s /mnt/initfs/lib/modules /lib/modules
}