Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/image/post.sh
diff options
context:
space:
mode:
Diffstat (limited to 'image/post.sh')
-rwxr-xr-ximage/post.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/image/post.sh b/image/post.sh
new file mode 100755
index 0000000..9835c8a
--- /dev/null
+++ b/image/post.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+src_root=$(dirname $0)
+cd ${INSTALL_ROOT}
+
+for i in $(ls $src_root/../activities/*.xo); do HOME=home/olpc sugar-install-bundle $i; done
+for i in `find home/olpc/.local -type l`; do ln -fs /$(readlink $i) $i; done
+
+echo Installing homepage
+# custom browser homepage
+mkdir -p usr/share/library-common
+cp $src_root/../hx_home/* usr/share/library-common/
+
+echo Setting language
+cat > home/olpc/.i18n <<EOF
+LANG="es_PE.utf8"
+LANGUAGE="es_PE.utf8"
+EOF
+
+creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}')
+chown ${creds} -R home/olpc