1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-14 17:21:32 +01:00
This commit is contained in:
2017-02-13 00:00:18 +01:00
parent 0078454b3f
commit ceec9c1e92

View File

@@ -6,7 +6,7 @@
## $2 -> If it has to be silent (0->Show, 1/not 0->Silent) ## $2 -> If it has to be silent (0->Show, 1/not 0->Silent)
## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user ## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user
## $4 -> Command to run ## $4 -> Command to run
## $5 -> Is a "various-sentence command"? (1 -> First / Not lastest, 2 -> Last ) ## $5 -> Is a "various-sentence command"? (0 -> First/Last/Unique, 1-> Not lastest )
function comm { function comm {
local command local command
local multic local multic
@@ -33,9 +33,10 @@ function comm {
fi fi
#Run command and make silent if its needed. #Run command and make silent if its needed.
if [[ $2 != "0" ]];then if [[ $2 != "0" ]];then
bash -c "$command" >/dev/null 1>/dev/null echo "SILENT"
bash -c "$command" >/dev/null 1>/dev/null
else else
bash -c "$command" bash -c "$command"
fi fi
# When command finish, know if it ran succesfully # When command finish, know if it ran succesfully
@@ -61,12 +62,12 @@ if [[ ! -f "jkarch" ]];then
comm "Grow cowspace for installer" "1" "sudo" "mount -o remount,size=700M /run/archiso/cowspace" comm "Grow cowspace for installer" "1" "sudo" "mount -o remount,size=700M /run/archiso/cowspace"
#Enable pacman #Enable pacman
comm "Configuring pacman" "1" "sudo" "pacman-key --init" "1" comm "Configuring pacman" "1" "sudo" "pacman-key --init" "0"
comm "Configuring pacman" "1" "sudo" "pacman-key --populate" "1" comm "Configuring pacman" "1" "sudo" "pacman-key --populate" "0"
comm "Configuring pacman" "1" "sudo" "pacman -Sy archlinux-keyring --noconfirm" "2" comm "Configuring pacman" "1" "sudo" "pacman -Sy archlinux-keyring --noconfirm" "1"
comm "Selecting mirrors" "1" "sudo" "pacman -S reflector --noconfirm" "1" comm "Selecting mirrors" "1" "sudo" "pacman -S reflector --noconfirm" "0"
comm "Selecting mirrors" "1" "sudo" "reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist" "2" comm "Selecting mirrors" "1" "sudo" "reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist" "1"
#Delete programs (For not updating it) #Delete programs (For not updating it)
sudo pacman -R clonezilla darkhttpd diffutils grml-zsh-config irssi linux-atm lvm2 man-db man-pages mc ndisc6 nmap smartmontools testdisk vi vim vim-runtime openconnect pcsclite python2 python reflector --noconfirm sudo pacman -R clonezilla darkhttpd diffutils grml-zsh-config irssi linux-atm lvm2 man-db man-pages mc ndisc6 nmap smartmontools testdisk vi vim vim-runtime openconnect pcsclite python2 python reflector --noconfirm