5 echo "Install extra browser search plugins"
7 # Import the TBB_EXT variable
8 .
/usr
/local
/lib
/tails-shell-library
/tor-browser.sh
10 LOCALIZED_PLUGINS_DIR
=/usr
/share
/amnesia
/browser
/searchplugins
/locale
12 for langpack
in "${TBB_EXT}"/langpack-
*@firefox.mozilla.org.xpi
; do
13 locale
="$(basename "${langpack}" | sed 's,^langpack-\([^@]\+\)@.*$,\1,')"
14 pkg
=iceweasel-l10n-
"$(echo ${locale} | tr 'A-Z' 'a-z')"
17 apt-get download
"${pkg}"
19 path_to_searchplugins
=etc
/iceweasel
/searchplugins
/locale
/"${locale}"
20 tar xf data.
tar.
* .
/"${path_to_searchplugins}"
21 rm -f "${path_to_searchplugins}"/amazon
*.xml \
22 "${path_to_searchplugins}"/bing
*.xml \
23 "${path_to_searchplugins}"/eBay
*.xml \
24 "${path_to_searchplugins}"/yahoo
*.xml
25 mkdir
-p "${LOCALIZED_PLUGINS_DIR}"/"${locale}"
26 cp "${path_to_searchplugins}"/* "${LOCALIZED_PLUGINS_DIR}"/"${locale}"