auto


Logs | Files | README | README | GitLab


1
commit 7472d0d9c6e8ccc093ca708570155b3935778237
2
Author: Connor Etherington <[email protected]>
3
Date:   Fri Jun 17 04:48:21 2022 +0159
4
5
    Auto-Commit Update - 20220617
6
---
7
 PKGBUILD            |  2 +-
8
 usr/bin/autoInstall | 71 +++++++++++++++++++----------------------------------
9
 2 files changed, 26 insertions(+), 47 deletions(-)
10
11
diff --git a/PKGBUILD b/PKGBUILD
12
index 5e3816b..2b23c29 100644
13
--- a/PKGBUILD
14
+++ b/PKGBUILD
15
@@ -1,7 +1,7 @@
16
 # Maintainer: Connor Etherington <[email protected]>
17
 # ---
18
 pkgname=auto
19
-pkgver=4.4
20
+pkgver=4.5
21
 pkgrel=1
22
 pkgdesc='ArchLinux bootstrap and partitioning scripts, with a selection of WM and DEs'
23
 arch=(x86_64)
24
diff --git a/usr/bin/autoInstall b/usr/bin/autoInstall
25
index d8e4a1a..7428285 100755
26
--- a/usr/bin/autoInstall
27
+++ b/usr/bin/autoInstall
28
@@ -57,11 +57,10 @@ KERNELS=(
29
 EDITIONS=(  
30
   '1' 'AutoLinux - DWM Edition                     '
31
   '2' 'AutoLinux - Plasma Edition                  '
32
-  '3' 'AutoLinux - Server Suite Edition            '
33
-  '4' 'KDE Plasma (Plasma Desktop and Apps)        '
34
-  '5' 'Gnome (Gnome Desktop and Apps)              '
35
-  '6' 'Xfce (Xfce4 Desktop and Apps)               '
36
-  '7' 'Bare Arch Linux (No Additional Packages)    ')
37
+  '3' 'KDE Plasma (Plasma Desktop and Apps)        '
38
+  '4' 'Gnome (Gnome Desktop and Apps)              '
39
+  '5' 'Xfce (Xfce4 Desktop and Apps)               '
40
+  '6' 'Bare Arch Linux (No Additional Packages)    ')
41
  
42
 
43
 installpkg(){ pacman --noconfirm --needed -S "$*" >/dev/null 2>&1 ; }
44
@@ -174,15 +173,7 @@ addConcise(){
45
     
46
 [concise]
47
 SigLevel = Required DatabaseOptional
48
-Include = /etc/pacman.d/concise-mirrorlist
49
-
50
-EOF
51
-
52
-cat <<-EOF > /etc/pacman.d/concise-mirrorlist
53
-
54
-Server = https://gitlab.com/a4to/concise/-/raw/master/x86_64/
55
-Server = https://concise.cc/concise/
56
-
57
+Server = https://gitlab.com/a4to/\$repo/-/raw/master/\$arch
58
 EOF
59
 
60
  pacman-key --init >/dev/null 2>&1 
61
@@ -349,17 +340,17 @@ dialog --infobox "Setting System Information..." 4 40 ; sleep 2
62
 case $edition in
63
   1) systemctl enable mpd.service >/dev/null 2>&1  ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
64
   2) systemctl enable sddm.service >/dev/null 2>&1 ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
65
-  4) systemctl enable sddm.service >/dev/null 2>&1 ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
66
-  5) systemctl enable gdm.service >/dev/null 2>&1  ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
67
-  6) systemctl enable sddm.service >/dev/null 2>&1 ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
68
+  3) systemctl enable sddm.service >/dev/null 2>&1 ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
69
+  4) systemctl enable gdm.service >/dev/null 2>&1  ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
70
+  5) systemctl enable sddm.service >/dev/null 2>&1 ; systemctl enable NetworkManager.service >/dev/null 2>&1 ;;
71
 esac
72
 
73
 case $edition in
74
-  1|2|3) hostname="AutoLinux" ; grep -q "ILoveCandy" /etc/pacman.conf || 
75
+  1|2) hostname="AutoLinux" ; grep -q "ILoveCandy" /etc/pacman.conf || 
76
     sed -i "/^\[options\]/aILoveCandy" /etc/pacman.conf ;  
77
-    sed -i "s/^#ParallelDownloads = .*/ParallelDownloads = 10/;s/#Color/Color/" /etc/pacman.conf
78
+    sed -i "/^#ParallelDownloads = .*/ParallelDownloads = 10/;s/^#Color$/Color/" /etc/pacman.conf
79
    systemctl enable bluetooth-autoconnect.service >/dev/null 2>&1 ;;
80
-  4|5|6|7) hostname="ArchLinux" ;;
81
+  3|4|5|6) hostname="ArchLinux" ;;
82
 esac
83
 
84
 ! [ -f /etc/hostname ] && echo "$hostname" > /etc/hostname
85
@@ -387,15 +378,6 @@ yesGrub(){ \
86
             grub-install --target=x86_64-efi --bootloader-id=AutoLinux --recheck >/dev/null 2>&1 ;
87
             grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 ; grubtheme ; }
88
 
89
-yesGrub2(){ \
90
-    dialog --infobox "Configuring Grub to Use Theming..." 4 40
91
-        pacman -S --noconfirm --needed grub >/dev/null 2>&1 
92
-        ! [ -d /sys/firmware/efi/efivars ] && 
93
-            grub-install --target=i386-pc --bootloader-id=AutoLinux --force  >/dev/null 2>&1 ;
94
-        [ -d /sys/firmware/efi/efivars ] && pacman -S --noconfirm --needed grub efibootmgr >/dev/null 2>&1 &&
95
-            grub-install --target=x86_64-efi --bootloader-id=AutoLinux --recheck >/dev/null 2>&1 ;
96
-            grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 ; grubtheme ; }
97
-
98
 grubTheme(){ \
99
 	dialog --infobox "Setting Grub theme..." 4 30 
100
     sleep 1 && mkdir -p /boot/grub/themes/AutoLinux &&
101
@@ -443,7 +425,7 @@ root_user_password || err "User exited."
102
 selKernel || err "User exited."
103
 
104
 case ${edition} in 
105
-  4|5|6|7) conciseRepos ;;
106
+  3|4|5|6) conciseRepos ;;
107
 esac
108
 
109
 bootload
110
@@ -480,11 +462,10 @@ archlinuxinstall yay-bin
111
 case $edition in
112
   1) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/dwm.csv" && configChoice="dwm" ;;
113
   2) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/plasma.csv" && configChoice="plasma" ;;
114
-  3) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/server-suite.csv" && configChoice="server" ;;
115
-  4) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-plasma.csv" && configChoice="bare-plasma" ;;
116
-  5) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-gnome.csv" && configChoice="bare-gnome" ;;
117
-  6) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-xfce.csv" && configChoice="bare-xfce" ;;
118
-  7) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare.csv" && configChoice="bare" ;;
119
+  3) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-plasma.csv" && configChoice="bare-plasma" ;;
120
+  4) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-gnome.csv" && configChoice="bare-gnome" ;;
121
+  5) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare-xfce.csv" && configChoice="bare-xfce" ;;
122
+  6) pkgsfile="https://gitlab.com/a4to/auto/-/raw/editions/bare.csv" && configChoice="bare" ;;
123
 esac
124
 
125
 case $kernel in
126
@@ -496,20 +477,18 @@ esac
127
 
128
 
129
 for x in $kernelChoice ; do
130
-	dialog --title "$TITLE" --infobox "\\nInstalling the "$x" kernel..." 4 70 && installpkg "$x"
131
-  dialog --title "$TITLE" --infobox "\\nInstalling the "$x" headers..." 4 70 && installpkg "$x"-headers
132
+	dialog --title "$TITLE" --infobox "\\nInstalling the "$x" kernel..." 5 70 && installpkg "$x"
133
+  dialog --title "$TITLE" --infobox "\\nInstalling the "$x" headers..." 5 70 && installpkg "$x"-headers
134
 done
135
 
136
-cleanGD() { placeconfigs "$envConf" "/home/$name" "$configChoice" && rm -rf "/home/$name/.git" ; chshell ; }
137
 
138
-case $edition in
139
-  7) ;;
140
-  3) installationloop ;;
141
-  2) systembeepoff ; cleanGD ;;
142
-  1) xftlib ; systembeepoff ; cleanGD ;;
143
-  *) installationloop ; cpudrivers ; gpudrivers ;;
144
-esac
145
+! [ $edition = '6' ] && installationloop && cpudrivers && gpudrivers  
146
                            
147
+[ $edition = '1' ] && xftlib
148
+
149
+[ $edition = '1' ] || [ $edition = '2' ] && systembeepoff && placeconfigs \
150
+ "$envConf" "/home/$name" "$configChoice" && rm -rf "/home/$name/.git" && chshell
151
+
152
 mkdir -p /etc/X11/xinit/xinitrc.d >/dev/null 2>&1 &&
153
     [ -f /home/$name/.config/shell/profile ] && cat /home/$name/.config/shell/profile > /etc/zsh/zprofile >/dev/null 2>&1
154
     [ -f /home/$name/.config/x11/xinitrc ] && cat /home/$name/.config/x11/xinitrc > /etc/X11/xinit/xinitrc >/dev/null 2>&1
155
@@ -537,7 +516,7 @@ sudo -u "$name" pulseaudio --start >/dev/null 2>&1
156
 
157
 [ "$loader" = '0' ] && yesGrub
158
 
159
-[ $edition = '1' ] || [ $edition = '2' ] && [ "$loader" = '0' ] && grubTheme && yesGrub2
160
+[ $edition = '1' ] || [ $edition = '2' ] && [ "$loader" = '0' ] && grubTheme
161
 
162
 finalize ; clear ; [ $edition = '1' ] || [ $edition = '2' ] && skell
163