From d89cb1d0d8bcf953a8e593fea9009cfee369c464 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Wed, 28 Sep 2016 20:32:12 +0200 Subject: [PATCH] fix --- archinstall/archinstall.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 6684085..78f5285 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -3,13 +3,6 @@ sclang=$1 source translations.sh -##Offline var -isoffline=0 -if [[ ! -z "$2" ]];then - isoffline="$2" #If its offline will be 1 -fi - - #Try to disable ctrl+C trap '' INT #No black screensaver @@ -17,6 +10,12 @@ setterm -blank 0 -powerdown 0 -powersave off #Fix para caracteres de dialog, ñ o tildes export NCURSES_NO_UTF8_ACS=1 +##Offline var +isoffline=0 +if [[ ! -z "$2" ]];then + isoffline="$2" #If its offline will be 1 +fi + function pause { echo "$(T "Press enter to continue...")" read @@ -305,7 +304,6 @@ if [[ $isoffline = "1" ]];then pacstrap -C pacman-offline.conf /mnt/ base btrfs-progs jkarch-mirrorlist mv pacman-offline.conf /mnt/etc/pacman.conf #Move pacman.conf (offline) to pacman chroot location fi -inchroot pacman -Syu jka-toolkit git wget netctl iw wpa_supplicant dialog sudo alsa-utils dosfstools ntfs-3g bash-completion --noconfirm --needed #Create fstab genfstab -U /mnt > /mnt/etc/fstab @@ -333,6 +331,10 @@ mount --bind /run /mnt/run if [[ $isoffline = 1 ]];then mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/ # CD bind fi + +inchroot pacman -Syu jka-toolkit git wget netctl iw wpa_supplicant dialog sudo alsa-utils dosfstools ntfs-3g bash-completion --noconfirm --needed #Install base packages + + }