1 # Copyright © 2016-2019 Reborn OS
3 # This file is part of Reborn OS.
5 # Reborn OS is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Reborn OS is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # The following additional terms are in effect as per Section 7 of the license:
17 # The preservation of all legal notices and author attributions in
18 # the material or in the Appropriate Legal Notices displayed
19 # by works containing it is required.
21 # You should have received a copy of the GNU General Public License
22 # along with Reborn OS; If not, see <http://www.gnu.org/licenses/>.
25 echo $(lspci -v | grep -A10 VGA | grep driver | awk '{print $5}') >/tmp/plymouth.txt
26 DEVICE=$(sed '1q;d' /tmp/plymouth.txt)
27 #echo $(grep -n "GRUB_CMDLINE_LINUX_DEFAULT" /etc/default/grub | grep -Eo '^[^:]+')s >/tmp/line.txt
28 #LINE1=$(sed '1q;d' /tmp/line.txt)
29 #SWAP_UUID=$(sudo blkid /dev/sd* | grep "swap" | awk '{print $2}' | sed 's/\"//g')
30 #echo $(cat /etc/mkinitcpio.conf | grep "keyboard keymap") >/tmp/hooks.txt
31 #HOOK=sed -n 's/.*base udev //p' /tmp/hooks.txt
32 #echo $(grep -n "keyboard keymap" /etc/mkinitcpio.conf | grep -Eo '^[^:]+')s >/tmp/line2.txt
33 #LINE2=$(sed '1q;d' /tmp/line2.txt)
34 #sed -i "$LINE2|.*|HOOKS=base udev plymouth $HOOK|" /etc/mkinitcpio.conf
35 # sed -i "$LINE1|.*|GRUB_CMDLINE_LINUX_DEFAULT=quiet splash resume=$SWAP_UUID|" /etc/default/grub
36 echo $(grep -n "MODULES=" /etc/mkinitcpio.conf | grep -Eo '^[^:]+')s | awk '{print $2}' >/tmp/line3.txt
37 LINE3=$(sed '1q;d' /tmp/line3.txt)
38 sed -i "$LINE3|.*|MODULES=\"$DEVICE\"|" /etc/mkinitcpio.conf
39 plymouth-set-default-theme -R arch-charge-big
41 grub-mkconfig -o /boot/grub/grub.cfg
44 rm -f /tmp/plymouth.txt
45 rm -f /tmp/modules.txt
47 rm -f /etc/xdg/autostart/plymouth-reborn.desktop