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

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