53 lines
2.0 KiB
Bash
Executable File
53 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
### Error checking added to "lint-trap" section.
|
|
### Missing files no longer cause builds to fail.
|
|
|
|
# Remove software
|
|
# apt remove -y firefox-esr
|
|
# apt remove -y teit
|
|
apt --purge --yes autoremove vim vim-tiny murrine-themes adapta-kde cantata hv3 nvidia-tesla-470-alternative termit
|
|
|
|
## This section is the "lint-trap" to remove files and/or
|
|
## directories not associated with or required by AcorOS.
|
|
## Followed by \ , add files to be removed, one per line.
|
|
|
|
for i in \
|
|
/usr/share/wallpapers/FuturePrototype \
|
|
/usr/share/wallpapers/FuturePrototypeWithLogo \
|
|
/usr/share/wallpapers/homeworld \
|
|
/usr/share/wallpapers/homeworld_wallpaper \
|
|
/usr/share/wallpapers/Joy \
|
|
/usr/share/wallpapers/JoyInksplat \
|
|
/usr/share/wallpapers/JoyLockScreen \
|
|
/usr/share/wallpapers/Lines \
|
|
/usr/share/wallpapers/LinesLockScreen \
|
|
/usr/share/wallpapers/moonlight \
|
|
/usr/share/wallpapers/MoonlightLockScreen \
|
|
/usr/share/wallpapers/SoftWaves \
|
|
/usr/share/wallpapers/SoftWavesLockScreen \
|
|
/usr/share/wallpapers/SpaceFun \
|
|
/usr/share/wallpapers/DebianTheme \
|
|
/usr/share/applications/acoroslocale-im.desktop \
|
|
/etc/alternatives/vi \
|
|
|
|
do [ -e $i ] &&
|
|
rm -rf ${i} ||
|
|
echo " The path ${i} was not found and couldn't be removed."
|
|
done
|
|
|
|
# Lowers the footprint in RAM at the small expense of added size to the ISO.
|
|
update-icon-caches /usr/share/icons/*
|
|
|
|
#add flatpak repo to gnome-software
|
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
#add-architecture i386
|
|
dpkg --add-architecture i386
|
|
|
|
### Fixes the "Not installing grub for UEFI Secure Boot" in all versions , after the default was changed.
|
|
#sed s/keyutils/"keyutils --install-recommends"/ /usr/sbin/bootloader-config > /tmp/bootloader-config
|
|
echo -e "$(grep -A1 -B20 "Installing grub-efi (uefi)..." /usr/sbin/bootloader-config) --install-recommends" > /tmp/bootloader-config
|
|
echo -e "$(grep -A2 "else" /usr/sbin/bootloader-config) --install-recommends\nfi" >> /tmp/bootloader-config
|
|
chmod +x /tmp/bootloader-config && mv /tmp/bootloader-config /usr/sbin/bootloader-config
|