/
webc.conf
38 lines (29 loc) · 1.23 KB
/
webc.conf
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
31
32
33
34
35
36
37
38
#
# webconverger configuration file
#
live_image=/lib/live/mount/medium
git_repo=${live_image}/live/filesystem.git
current_git_revision=$(cat /.git-fs-commit-id)
webc_id=$( cat /etc/webc/id 2>/dev/null || echo "unknown-uuid" )
webc_version=$( git --git-dir $git_repo describe --always "${current_git_revision}" 2>/dev/null || echo 12.3 )
# Default location for system wide preferences
prefs=/opt/firefox/browser/defaults/preferences/webc-boot.js
# Default location for Webconverger extension
link='/opt/firefox/browser/extensions/kiosk@webconverger.com'
install_base_url="https://config.webconverger.com/clients"
install_qa_url="${install_base_url}/?v=${webc_version}&id=${webc_id}&chrome=$(cmdline_get chrome)"
config_url="${install_base_url}/install-config/${webc_id}"
# triggers live-config.sh - this gets config from config.webconverger.com
live_config_pipe="/tmp/live-config.pipe" # needs to be writable by xinitrc
# triggering upgrade.sh from live-config.sh atm
upgrade_pipe="/tmp/upgrade.pipe"
config_runtime="/etc/webc/cmdline"
config_cached="${live_image}/live/webc-cmdline"
device=$( df 2>/dev/null | grep ${live_image} | awk '{ print $1 }' )
if touch ${live_image}
then
device="$device-rw"
else
device="$device-ro"
fi
kernel=$(uname -r)