Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/image/post.sh
blob: 9835c8a7c99be4f461da9a3fd4480e8c3b14bce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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