Skip to content
Snippets Groups Projects
Forked from trisquel / package-helpers
660 commits behind, 41 commits ahead of the upstream repository.
make-casper 1.88 KiB
#!/bin/sh
#
#    Copyright (C) 2012-2021  Ruben Rodriguuez <ruben@trisquel.info>
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
#

VERSION=11

. ./config

# Only generate the locale selected at boot
sed 's/keep-existing/keep-existing $LANG/' -i scripts/casper-bottom/14locales

# Make sure we disable ureadahead
sed 's/readahead-list/ureadahead/' -i scripts/casper-bottom/25configure_init

# Only do integrity check by request
sed 's|^casper-md5check|grep -q integrity-check /proc/cmdline \&\& casper-md5check|' -i scripts/casper-bottom/01integrity_check

# Enable a11y on mate
sed '/gset org.gnome.desktop.interface toolkit-accessibility true/a \ \ \ \ \ \ \ \ gset org.mate.desktop.interface accessibility true' -i bin/casper-a11y-enable
sed "/gset org.gnome.desktop.interface toolkit-accessibility true/a \ \ \ \ \ \ \ \ gset com.canonical.a11y-profile-manager active-profile \"'blindness\'\"" -i bin/casper-a11y-enable
sed '/gset org.gnome.desktop.interface toolkit-accessibility true/a \ \ \ \ \ \ \ \ gset org.mate.desktop.applications.at screen-reader-enabled true' -i bin/casper-a11y-enable

rm scripts/casper-premount/10driver_updates
rm scripts/casper-bottom/33enable_apport_crashes


changelog "Compiled for Trisquel"

compile