Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-05-28 20:23:05 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-05-28 20:23:05 (GMT)
commit963af6552edf07d6f40c50037193de7d81830221 (patch)
treea1a4cf38879282dbfe10f4438396cb4ae053d263
parentb865087edbcd862c569a9b2ea2b8812364820d86 (diff)
Prebuild SN index
-rw-r--r--oob/post.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/oob/post.sh b/oob/post.sh
index 3b7deef..427a16a 100644
--- a/oob/post.sh
+++ b/oob/post.sh
@@ -3,9 +3,7 @@
src_root=$(dirname $0)
cd ${INSTALL_ROOT}
-creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}')
gconf_set="gconftool-2 --direct --config-source xml:readwrite:etc/gconf/gconf.xml.defaults --set"
-
$gconf_set --type float /desktop/sugar/font/default_size 7
$gconf_set --type bool /desktop/sugar/show_logout false
$gconf_set --type bool /desktop/sugar/power/automatic true
@@ -19,7 +17,7 @@ cat > etc/sweets.conf << EOF
# enable Sugar Network support in Sugar Shell
sugar-network = True
-[local-document]
+[sugar-network]
# url to connect to Sugar Network server API
# make it empty to discover local servers via Avahi
api-url =
@@ -38,9 +36,13 @@ mkdir -p home/olpc/{Activities,Library}
for bundle in $(ls $src_root/activities/*.xo); do
unzip -q $bundle -d home/olpc/Activities/
done
-chown ${creds} -R home/olpc/{Activities,Library}
+
+# Index Sugar Network local content to avoid doing that on the first startup
+sugar-network-service -DD index . olpc auto
cat > home/olpc/.xsession << EOF
exec sweets-sugar
EOF
-chown ${creds} home/olpc/.xsession
+
+creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}')
+chown ${creds} -R home/olpc