Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/oats_cfg/kspost.50.oats_cfg.sh
blob: 32989d2e3c2f0c356d622c265f78c1286f87665a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.

. $OOB__shlib

server=$(read_config oats_cfg server)
ignore_xs=$(read_config oats_cfg ignore_xs)
stream=$(read_config oats_cfg stream)

if [ "$ignore_xs" = "1" ]; then
	echo "touch /etc/oats-ignore-xs"
fi

if [ -n "$server" ]; then
	echo "echo '$server' > /etc/oats-server"
fi

if [ -n "$stream" ]; then
	echo "echo '$stream' > /etc/update-stream"
fi