mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-21 12:04:57 +02:00
@eshanized: push via push.sh!!!
This commit is contained in:
@@ -38,20 +38,16 @@ function check_file() {
|
|||||||
check_connectivity
|
check_connectivity
|
||||||
check_file
|
check_file
|
||||||
|
|
||||||
|
|
||||||
# pacman config + online
|
|
||||||
if [ $Online -eq 1 ] ; then
|
if [ $Online -eq 1 ] ; then
|
||||||
echo "Downloading Default Grub..."
|
echo "Downloading Default Grub..."
|
||||||
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-arctic/master/archiso/airootfs/etc/default/grub -O $workdir/etc/default/grub
|
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-arctic/master/archiso/airootfs/etc/default/grub -O $workdir/etc/default/grub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# pacman config + not online
|
|
||||||
if [ $Online -eq 0 ] && [ $file_boolean -eq 1 ] ; then
|
if [ $Online -eq 0 ] && [ $file_boolean -eq 1 ] ; then
|
||||||
sudo cp /usr/local/share/snigdhaos/grub/grub /etc/default/grub
|
sudo cp /usr/local/share/snigdhaos/grub/grub /etc/default/grub
|
||||||
echo "Copied Grub Locally!"
|
echo "Copied Grub Locally!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#putting old pacman config back
|
|
||||||
if [ $Online -eq 0 ] && [ $file_boolean -eq 0 ] ; then
|
if [ $Online -eq 0 ] && [ $file_boolean -eq 0 ] ; then
|
||||||
echo "Run this script once you are back online"
|
echo "Run this script once you are back online"
|
||||||
fi
|
fi
|
||||||
@@ -60,4 +56,4 @@ sudo grub-mkconfig -o /boot/grub/grub.cfg
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Task Completed!"
|
echo "Task Completed!"
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user