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: 49bae4c9dc1dd8aec85d2997fa90d16b94f54c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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)
ignore_sig=$(read_config oats_cfg ignore_signature)
stream=$(read_config oats_cfg stream)

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

[ "$ignore_sig" = "1" ] && echo "touch /etc/oats-ignore-signature"

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

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