new commit

This commit is contained in:
manuel 2023-11-16 13:26:50 -01:00
parent 26397e3271
commit 37e825dea7
10 changed files with 0 additions and 86 deletions

View File

@ -1 +0,0 @@
../scripts

View File

@ -1 +0,0 @@
../scripts

View File

@ -1 +0,0 @@
../scripts

View File

@ -1 +0,0 @@
../scripts

View File

@ -1 +0,0 @@
../scripts

View File

@ -1 +0,0 @@
../scripts

View File

@ -1,18 +0,0 @@
#!/bin/sh -e
################################################################################
# Title: build-all.sh
# Description: This script removes unwanted software and files after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Remove unwanted packages
chroot /target apt purge --autoremove -y \
raspi-firmware \
calamares \
calamares-settings*
# Clean unnecessary files
rm -r /target/boot/firmware

View File

@ -1,33 +0,0 @@
#!/bin/sh -e
################################################################################
# Title: Grub-config
# Description: This script configures grub defaults after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Defines the variables
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="My-distro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE=1440x900
GRUB_DISABLE_OS_PROBER=false
# GRUB configuration file path
GRUB_CONFIG_FILE="/target/etc/default/grub"
# Modify the GRUB file
sed -i "s/^GRUB_DEFAULT=.*/GRUB_DEFAULT=$GRUB_DEFAULT/" $GRUB_CONFIG_FILE
sed -i "s/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=$GRUB_TIMEOUT/" $GRUB_CONFIG_FILE
sed -i "s/^GRUB_DISTRIBUTOR=.*/GRUB_DISTRIBUTOR=\"$GRUB_DISTRIBUTOR\"/" $GRUB_CONFIG_FILE
sed -i "s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"$GRUB_CMDLINE_LINUX_DEFAULT\"/" $GRUB_CONFIG_FILE
sed -i "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX\"/" $GRUB_CONFIG_FILE
sed -i "s/^#GRUB_GFXMODE=.*/GRUB_GFXMODE=$GRUB_GFXMODE/" $GRUB_CONFIG_FILE
sed -i "s/^#GRUB_DISABLE_OS_PROBER=.*/GRUB_DISABLE_OS_PROBER=$GRUB_DISABLE_OS_PROBER/" $GRUB_CONFIG_FILE
# Run update-grub after modifying the file
chroot /target update-grub

View File

@ -1,13 +0,0 @@
#!/bin/sh -e
################################################################################
# Title: rebuild-icon-caches
# Description: This script rebuilds the icon caches after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Rebuild the icon caches
chroot /target find /usr/share/icons -type d -exec gtk-update-icon-cache -f {} \;

View File

@ -1,16 +0,0 @@
#!/bin/sh -e
################################################################################
# Title: build-all.sh
# Description: This script updates the system after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Update the system
chroot /target apt update
chroot /target apt upgrade -y
# Clean up unnecessary packages
chroot /target apt autoremove -y