Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-includes / usr / local / bin / tails-documentation
blob36932d0c5b7f1dc2cef883d62922274b4d4713fe
1 #! /bin/sh
3 if [ $# -ge 1 ]; then
4 PAGE="$1"
5 else
6 PAGE='index'
7 fi
9 WIKI_ROOT='/usr/share/doc/tails/website'
10 LANG_CODE="`echo ${LANG} | head -c 2`"
12 if [ -r "${WIKI_ROOT}/${PAGE}.${LANG_CODE}.html" ]; then
13 FILE="${PAGE}.${LANG_CODE}.html"
14 elif [ -r "${WIKI_ROOT}/${PAGE}.en.html" ]; then
15 FILE="${PAGE}.en.html"
16 else
17 FILE="${PAGE}.html"
20 exec /usr/local/bin/tor-browser "file://${WIKI_ROOT}/${FILE}"