Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/image/post.sh
blob: 3c41d816904dde74f76da680f53bac175e8fa4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

src_root=$(dirname $0)
cd ${INSTALL_ROOT}

echo Installing homepage
# custom browser homepage
mkdir -p usr/share/library-common
cp $src_root/../hx_home/*  usr/share/library-common/

echo Installing boot-anim 
mkdir -p usr/share/boot-anim
cp $src_root/../boot_logo/frame00.565  usr/share/boot-anim/

#mkdir -p home/olpc/Activities
for i in $(ls $src_root/../activities/*.xo)
do
    HOME=home/olpc usr/bin/sugar-install-bundle $i
    #unzip -d home/olpc/Activities $i
    echo Installing custom $i
done

# THIS GETS OVERWRITTEN ON FIRST BOOT :-(
#cat > home/olpc/.i18n << EOF
#LANG="ayc_PE.utf8"
#LANGUAGE="ayc_PE.utf8"
#EOF

creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}')
chown ${creds} -R home/olpc