Files
snigdhaos-system-installation/usr/local/bin/snigdhaos-before
2024-08-01 04:04:24 +05:30

25 lines
678 B
Bash
Executable File

#!/bin/bash
# set -e
# Author : Eshan Roy <eshan@snigdhaos.or>
# Author URL : https://eshanized.github.io/
echo "Starting Execution..."
# Populate Developer Keys
echo "Populating Developer Keys..."
pacman-key --init
pacman-key --populate snigdhaos archlinux chaotic
# Copy Snigdha OS Grub Theme if not already done
if [ ! -f /tmp/systemd-boot ]; then
echo "Copy Snigdha OS Grub Theme..."
mkdir -p /boot/grub/themes
cp -Rf /usr/share/grub/themes/snigdhaos-grub-theme /boot/grub/themes/
fi
# Set Snigdha OS Arctic Preset
echo "Setting Snigdha OS Arctic Preset..."
mv -v /etc/mkinitcpio.d/snigdhaos /etc/mkinitcpio.d/linux.preset
echo "End Execution!"