mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-20 19:44:58 +02:00
@eshanized: push via push.sh 🎉 !!!
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
# shellcheck disable=SC2154
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Reinstalling Grub..."
|
echo "Reinstalling Grub..."
|
||||||
@@ -41,6 +39,7 @@ check_file
|
|||||||
|
|
||||||
if [ $Online -eq 1 ] ; then
|
if [ $Online -eq 1 ] ; then
|
||||||
echo "Downloading Default Grub..."
|
echo "Downloading Default Grub..."
|
||||||
|
# shellcheck disable=SC2154
|
||||||
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-updater/master/grub -O "$workdir"/etc/default/grub
|
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-updater/master/grub -O "$workdir"/etc/default/grub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Downloading Latest pacman.conf..."
|
echo "Downloading Latest pacman.conf..."
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# set -e
|
|
||||||
|
|
||||||
Online=0
|
Online=0
|
||||||
function check_connectivity() {
|
function check_connectivity() {
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Copying /etc/pacman.d/gnupg/gpg.conf"
|
echo "Copying /etc/pacman.d/gnupg/gpg.conf"
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
sudo /usr/bin/reflector --score 100 --fastest 10 --number 10 --verbose --save /etc/pacman.d/mirrorlist
|
sudo /usr/bin/reflector --score 100 --fastest 10 --number 10 --verbose --save /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Applying lsb Release..."
|
echo "Applying lsb Release..."
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Applying OS Release..."
|
echo "Applying OS Release..."
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#set -e
|
|
||||||
|
|
||||||
boot=$(bootctl status | grep Product | awk '{printf($2)}')
|
boot=$(bootctl status | grep Product | awk '{printf($2)}')
|
||||||
echo "The system is using $boot to boot."
|
echo "The system is using $boot to boot."
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
if [ $boot = "GRUB" ]; then
|
if [ $boot = "GRUB" ]; then
|
||||||
/usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=snigdhaos --disable-shim-lock --removable
|
/usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=snigdhaos --disable-shim-lock --removable
|
||||||
fi
|
fi
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
if lsblk | grep -q "/boot/efi" ; then
|
if lsblk | grep -q "/boot/efi" ; then
|
||||||
echo
|
echo
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Reinstalling Grub..."
|
echo "Reinstalling Grub..."
|
||||||
@@ -40,6 +39,8 @@ check_file
|
|||||||
|
|
||||||
if [ $Online -eq 1 ] ; then
|
if [ $Online -eq 1 ] ; then
|
||||||
echo "getting latest /etc/default/grub from github"
|
echo "getting latest /etc/default/grub from github"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
# shellcheck disable=SC2154
|
||||||
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-updater/master/grub -O $workdir/etc/default/grub
|
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-updater/master/grub -O $workdir/etc/default/grub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user