Commit cfdf20f5 authored by Tails developers's avatar Tails developers
Browse files

Adapt Unsafe Browser for tails-greeter 0.7.

Now camouflage mode isn't set on the kernel cmdline, but via an option
in tails-greeter.
parent 334160e4
...@@ -28,6 +28,10 @@ else ...@@ -28,6 +28,10 @@ else
START_PAGE="${WARNING_PAGE}.en.html" START_PAGE="${WARNING_PAGE}.en.html"
fi fi
if [ -e /var/lib/gdm3/tails.camouflage ]; then
CAMOUFLAGE=yes
fi
cleanup () { cleanup () {
# Break down the chroot and kill all of its processes # Break down the chroot and kill all of its processes
local counter=0 local counter=0
...@@ -124,7 +128,7 @@ configure_chroot () { ...@@ -124,7 +128,7 @@ configure_chroot () {
rm -rf ${CHROOT}/etc/iceweasel/profile/extensions rm -rf ${CHROOT}/etc/iceweasel/profile/extensions
# Set a scary theme (except if we're using Windows camouflage) # Set a scary theme (except if we're using Windows camouflage)
if grep -qwv winxp /proc/cmdline; then if [ -z "${CAMOUFLAGE}" ]; then
cat >> ${CHROOT}/etc/iceweasel/profile/user.js <<EOF cat >> ${CHROOT}/etc/iceweasel/profile/user.js <<EOF
user_pref("lightweightThemes.isThemeSelected", true); user_pref("lightweightThemes.isThemeSelected", true);
user_pref("lightweightThemes.usedThemes", "[{\"id\":\"1\",\"name\":\"Unsafe Browser\",\"headerURL\":\"file:///usr/share/pixmaps/red_dot.png\",\"footerURL\":\"file:///usr/share/pixmaps/red_dot.png\",\"textcolor\":\"#FFFF00\",\"accentcolor\":\"#CC0000\",\"updateDate\":0,\"installDate\":0}]"); user_pref("lightweightThemes.usedThemes", "[{\"id\":\"1\",\"name\":\"Unsafe Browser\",\"headerURL\":\"file:///usr/share/pixmaps/red_dot.png\",\"footerURL\":\"file:///usr/share/pixmaps/red_dot.png\",\"textcolor\":\"#FFFF00\",\"accentcolor\":\"#CC0000\",\"updateDate\":0,\"installDate\":0}]");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment